cmd/compile: regalloc restoring to dead register #14761
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Performance
Milestone
This compiles to:
Notice the restore of
p
at 56 which is unnecessary, asCX
is dead. This is just the register allocator trying to get the same data in the same registers as the other predecessor of instruction 37. We currently match only the values in registers which are live. But we really should match values in registers which are live and which are used at least once.The text was updated successfully, but these errors were encountered: