aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
commit0557b4be5f010f72d5320c702b076bd346a62adc (patch)
tree87b36e637cdf40eacccb039a90ff537fb05a63c4 /lib
parente6a7015ae97dd479c112bb8d55192975a02e3224 (diff)
downloadexternal_llvm-0557b4be5f010f72d5320c702b076bd346a62adc.zip
external_llvm-0557b4be5f010f72d5320c702b076bd346a62adc.tar.gz
external_llvm-0557b4be5f010f72d5320c702b076bd346a62adc.tar.bz2
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')
-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 d34b701..179984f 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);