summaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegisterPressure.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-12-05 21:37:50 +0000
committerAndrew Trick <atrick@apple.com>2012-12-05 21:37:50 +0000
commitf3329c419b1010089e8aaf3d43b811ba12d94c8a (patch)
tree07bf22c5a067653e6364ba6e3a8cd43cdeaf5306 /lib/CodeGen/RegisterPressure.cpp
parentf54f61538688eff25f392c2062b3a654394333aa (diff)
downloadllvm-f3329c419b1010089e8aaf3d43b811ba12d94c8a.tar.gz
llvm-f3329c419b1010089e8aaf3d43b811ba12d94c8a.tar.bz2
llvm-f3329c419b1010089e8aaf3d43b811ba12d94c8a.tar.xz
RegisterPressureTracker: fix findUseBetween to handle DebugValue
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169427 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegisterPressure.cpp')
-rw-r--r--lib/CodeGen/RegisterPressure.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/RegisterPressure.cpp b/lib/CodeGen/RegisterPressure.cpp
index 1576b2abbe..c7859b9395 100644
--- a/lib/CodeGen/RegisterPressure.cpp
+++ b/lib/CodeGen/RegisterPressure.cpp
@@ -680,6 +680,8 @@ static bool findUseBetween(unsigned Reg,
UI = MRI->use_nodbg_begin(Reg), UE = MRI->use_nodbg_end();
UI != UE; UI.skipInstruction()) {
const MachineInstr* MI = &*UI;
+ if (MI->isDebugValue())
+ continue;
SlotIndex InstSlot = LIS->getInstructionIndex(MI).getRegSlot();
if (InstSlot >= PriorUseIdx && InstSlot < NextUseIdx)
return true;