llvm-project
6cf5acc3 - RegAllocGreedy: Fix subrange based instruction split logic

Commit
346 days ago
RegAllocGreedy: Fix subrange based instruction split logic Fix the logic for readsLaneSubset. Check at the correct point for the use operands of the instruction, instead of the result. Only consider the use register operands, and stop considering whether the subranges are actually live at this point. This avoids some unproductive splits. This also happens to avoid a use after free due to a split of an unspillable register. That issue still exists if the instruction does not reference the full set of register lanes.
Author
Committer
Parents
Loading