projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add some helpers
[oota-llvm.git]
/
lib
/
CodeGen
/
RegisterScavenging.cpp
diff --git
a/lib/CodeGen/RegisterScavenging.cpp
b/lib/CodeGen/RegisterScavenging.cpp
index 13a361991959d717419b12df073538a0ab0f9592..93c63bf1acaa158d291e25f23ea2ad41ee40d82d 100644
(file)
--- a/
lib/CodeGen/RegisterScavenging.cpp
+++ b/
lib/CodeGen/RegisterScavenging.cpp
@@
-235,7
+235,7
@@
static unsigned calcDistanceToUse(MachineBasicBlock *MBB,
I = next(I);
while (I != MBB->end()) {
Dist++;
- if (I->findRegisterUseOperand(Reg) != -1)
+ if (I->findRegisterUseOperand
Idx
(Reg) != -1)
return Dist;
I = next(I);
}