Copy propagation needs to propagate variables, not values #64700
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
bug
Milestone
Copy propagation today can substitute uses with live defs of locals. In doing so, it compares the value number of the def to the value of the use as a
LCL_VAR
. This is not correct because of zero-offset field sequences. Consider:If we replace the
use
witha1
, then on renumbering (underJitOptRepeat
) we will have a duplicated sequence.The text was updated successfully, but these errors were encountered: