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:
c4601bf
)
Fix a bug in my previous refactoring change... arg!
author
Chris Lattner
<sabre@nondot.org>
Tue, 17 Feb 2004 07:02:17 +0000
(07:02 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 17 Feb 2004 07:02:17 +0000
(07:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11535
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/RegAllocLocal.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/RegAllocLocal.cpp
b/lib/CodeGen/RegAllocLocal.cpp
index dc375cc54e69659961c4f2edd7133312ac2d65f6..f8e5086e6c5a4c69a782b8655584d8076672cfc1 100644
(file)
--- a/
lib/CodeGen/RegAllocLocal.cpp
+++ b/
lib/CodeGen/RegAllocLocal.cpp
@@
-492,7
+492,9
@@
MachineInstr *RA::reloadVirtReg(MachineBasicBlock &MBB, MachineInstr *MI,
const TargetRegisterClass *RC = MF->getSSARegMap()->getRegClass(VirtReg);
unsigned PhysReg = getFreeReg(RC);
- if (PhysReg == 0) { // No registers available...
+ if (PhysReg) { // PhysReg available!
+ PhysReg = getReg(MBB, MI, VirtReg);
+ } else { // No registers available...
/// If we can fold this spill into this instruction, do so now.
if (0) {
// TODO