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:
c024df6
)
add initializers for clarity. Add missing assignment of PrevLastUseOp.
author
Jim Grosbach
<grosbach@apple.com>
Wed, 7 Oct 2009 18:44:24 +0000
(18:44 +0000)
committer
Jim Grosbach
<grosbach@apple.com>
Wed, 7 Oct 2009 18:44:24 +0000
(18:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83481
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/PrologEpilogInserter.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/PrologEpilogInserter.cpp
b/lib/CodeGen/PrologEpilogInserter.cpp
index a2a8af397a30a7df473fbd76f54aa63447308095..66ec0b343481582d7fb0eebbded786c25159cd6a 100644
(file)
--- a/
lib/CodeGen/PrologEpilogInserter.cpp
+++ b/
lib/CodeGen/PrologEpilogInserter.cpp
@@
-782,8
+782,8
@@
void PEI::scavengeFrameVirtualRegs(MachineFunction &Fn) {
unsigned CurrentScratchReg = 0;
unsigned PrevScratchReg = 0;
int PrevValue;
- MachineInstr *PrevLastUseMI;
- unsigned PrevLastUseOp;
+ MachineInstr *PrevLastUseMI
= NULL
;
+ unsigned PrevLastUseOp
= 0
;
// The instruction stream may change in the loop, so check BB->end()
// directly.
@@
-875,6
+875,7
@@
void PEI::scavengeFrameVirtualRegs(MachineFunction &Fn) {
if (MI->getOperand(i).isKill()) {
PrevScratchReg = CurrentScratchReg;
PrevLastUseMI = MI;
+ PrevLastUseOp = i;
CurrentScratchReg = CurrentVirtReg = 0;
}
}