projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c87b40b
)
Skip dbg_value instructions when scanning instructions in register scavenging.
author
Jim Grosbach
<grosbach@apple.com>
Fri, 4 Jun 2010 20:18:30 +0000
(20:18 +0000)
committer
Jim Grosbach
<grosbach@apple.com>
Fri, 4 Jun 2010 20:18:30 +0000
(20:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105481
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/RegisterScavenging.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/RegisterScavenging.cpp
b/lib/CodeGen/RegisterScavenging.cpp
index 690e59f96ebc73e73096dee85dc5703b360a0c31..b3e79756b62cf9aba362a261556605e70ade8b15 100644
(file)
--- a/
lib/CodeGen/RegisterScavenging.cpp
+++ b/
lib/CodeGen/RegisterScavenging.cpp
@@
-258,6
+258,10
@@
unsigned RegScavenger::findSurvivorReg(MachineBasicBlock::iterator StartMI,
bool inVirtLiveRange = false;
for (++MI; InstrLimit > 0 && MI != ME; ++MI, --InstrLimit) {
+ if (MI->isDebugValue()) {
+ ++InstrLimit; // Don't count debug instructions
+ continue;
+ }
bool isVirtKillInsn = false;
bool isVirtDefInsn = false;
// Remove any candidates touched by instruction.