Thoughts on speculatively creating IR and throwing it away if not needed

Given that this might push the envelop of the pattern a bit, I’d like

to check if there are any concerns with using this pattern more widely.

Is the idea here to generate instructions which are collectively cheaper than their individual costs (due to reuse/combinations)? Or is it a matter of not really knowing what instructions will be generated and no?

/Jonas

Hi Jonas,

Hi Florian,

this sounds like the only reasonable way to do this then... If there is no noticeable compile-time regression and benchmarks improve, then I say "1+" :slight_smile:

/Jonas