[llvm] [LiveIntervals] Ignore artificial regs when adding kill flags (PR #116963)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 4 03:26:43 PST 2024
================
@@ -780,7 +783,7 @@ void LiveIntervals::addKillFlags(const VirtRegMap *VRM) {
// are actually never written by %2. After assignment the <kill>
// flag at the read instruction is invalid.
LaneBitmask DefinedLanesMask;
- if (LI.hasSubRanges()) {
+ if (LI.hasSubRanges() && TRI->getNumAllocatableSubRegs(PhysReg) > 1) {
----------------
sdesmalen-arm wrote:
Thanks for the suggestion @arsenm, this approach makes more sense!
https://github.com/llvm/llvm-project/pull/116963
More information about the llvm-commits
mailing list