Closed
Description
When we see a direct call to an enum variant constructor, we should just inline it in the frontend. This has two important benefits, one obvious and one not-so-obvious: (1) it reduces compilation time; (2) it can often avoid one memcpy, because we can simply write the discriminant and variant payload in place.