You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this case, reload is not needed since the previous instruction spills the same register to the same stack slot as in the reload.
Since there is an optimization to remove unneeded spills if the previous instruction is reload from the same stack slot (StackSlotColoring::RemoveDeadStores), create a similar optimization to remove unneeded reloads.
The text was updated successfully, but these errors were encountered:
After #494, we can get the following pattern (taken from the
M3B3 tests/yul/semantic/for.yul
) generated in the regalloc:In this case, reload is not needed since the previous instruction spills the same register to the same stack slot as in the reload.
Since there is an optimization to remove unneeded spills if the previous instruction is reload from the same stack slot (
StackSlotColoring::RemoveDeadStores
), create a similar optimization to remove unneeded reloads.The text was updated successfully, but these errors were encountered: