[PATCH] D110542: [LiveIntervals] Remove unused subreg ranges in repairIntervalsInRange
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 30 01:15:32 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG156d7d2df748: [LiveIntervals] Remove unused subreg ranges in repairIntervalsInRange (authored by foad).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110542/new/
https://reviews.llvm.org/D110542
Files:
llvm/lib/CodeGen/LiveIntervals.cpp
llvm/test/CodeGen/AMDGPU/dead-lane.mir
llvm/test/CodeGen/Thumb2/mve-sext-masked-load.ll
Index: llvm/test/CodeGen/Thumb2/mve-sext-masked-load.ll
===================================================================
--- llvm/test/CodeGen/Thumb2/mve-sext-masked-load.ll
+++ llvm/test/CodeGen/Thumb2/mve-sext-masked-load.ll
@@ -1,5 +1,6 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -mtriple=thumbv8.1m.main-none-none-eabi -mattr=+mve.fp,+fp64 -verify-machineinstrs -o - %s | FileCheck %s
+; RUN: llc -mtriple=thumbv8.1m.main-none-none-eabi -mattr=+mve.fp,+fp64 -verify-machineinstrs -early-live-intervals -o - %s | FileCheck %s
define arm_aapcs_vfpcc <4 x float> @foo_v4i16(<4 x i16>* nocapture readonly %pSrc, i32 %blockSize, <4 x i16> %a) {
; CHECK-LABEL: foo_v4i16:
Index: llvm/test/CodeGen/AMDGPU/dead-lane.mir
===================================================================
--- llvm/test/CodeGen/AMDGPU/dead-lane.mir
+++ llvm/test/CodeGen/AMDGPU/dead-lane.mir
@@ -1,4 +1,5 @@
# RUN: llc -march=amdgcn -mcpu=tonga %s -start-before detect-dead-lanes -stop-before machine-scheduler -verify-machineinstrs -o - | FileCheck -check-prefix=GCN %s
+# RUN: llc -march=amdgcn -mcpu=tonga %s -start-before detect-dead-lanes -stop-before machine-scheduler -verify-machineinstrs -early-live-intervals -o - | FileCheck -check-prefix=GCN %s
# GCN-LABEL: name: dead_lane
# GCN: bb.0:
Index: llvm/lib/CodeGen/LiveIntervals.cpp
===================================================================
--- llvm/lib/CodeGen/LiveIntervals.cpp
+++ llvm/lib/CodeGen/LiveIntervals.cpp
@@ -1655,6 +1655,10 @@
}
}
}
+
+ bool isStartValid = getInstructionFromIndex(LII->start);
+ if (!isStartValid && LII->end.isDead())
+ LR.removeSegment(*LII, true);
}
void
@@ -1716,6 +1720,7 @@
for (LiveInterval::SubRange &S : LI.subranges())
repairOldRegInRange(Begin, End, EndIdx, S, Reg, S.LaneMask);
+ LI.removeEmptySubRanges();
repairOldRegInRange(Begin, End, EndIdx, LI, Reg);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110542.376129.patch
Type: text/x-patch
Size: 1968 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210930/886f0a74/attachment.bin>
More information about the llvm-commits
mailing list