summaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegisterScavenging.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-04-15 20:28:39 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-04-15 20:28:39 +0000
commit5ef9d76f6f1afe5a07a9cffe7ce5780d07a25d9c (patch)
tree87b36e637cdf40eacccb039a90ff537fb05a63c4 /lib/CodeGen/RegisterScavenging.cpp
parent8538f0496a2dea177f9face5e04294f11927f51b (diff)
downloadllvm-5ef9d76f6f1afe5a07a9cffe7ce5780d07a25d9c.tar.gz
llvm-5ef9d76f6f1afe5a07a9cffe7ce5780d07a25d9c.tar.bz2
llvm-5ef9d76f6f1afe5a07a9cffe7ce5780d07a25d9c.tar.xz
Fix PR6847. RegScavenger should ignore DebugValues.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101392 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegisterScavenging.cpp')
-rw-r--r--lib/CodeGen/RegisterScavenging.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/RegisterScavenging.cpp b/lib/CodeGen/RegisterScavenging.cpp
index d34b701db9..179984f2a9 100644
--- a/lib/CodeGen/RegisterScavenging.cpp
+++ b/lib/CodeGen/RegisterScavenging.cpp
@@ -136,6 +136,9 @@ void RegScavenger::forward() {
ScavengeRestore = NULL;
}
+ if (MI->isDebugValue())
+ return;
+
// Find out which registers are early clobbered, killed, defined, and marked
// def-dead in this instruction.
BitVector EarlyClobberRegs(NumPhysRegs);