On 11/18/26 2:19 AM, Bohan Lei wrote:
Hi Jeff,

We want to do the aggressive hoisting by pretending the first insn has a
VXRM need, even if the function has calls.  What we want to know is
whether or not there is a path from entry to each VXRM use point that
does not pass through a call or otherwise clobbers VXRM. If there is any
such path then pretend we have a VXRM demand on the first insn.
I was just wondering if we can even be simpler, to ignore all the call
sites in singleton_vxrm_need.  Even if every path from the entry to the
VXRM use passes through a call, and the singleton VXRM write we insert
at the function entry is redundant, it seems that later dead code
elimination can always remove that write, so the effect should be the same.
I think that would work.  It's been a while, but I believe I (incorrectly) rejected that approach because it was a lot more likely to leave a dead VXRM assignment in the IL and if it flushes the pipes, then it's incredibly expensive.  But as you note above, DCE should take care of that.

jeff

Reply via email to