[llvm-commits] CVS: llvm/lib/CodeGen/RegAllocLocal.cpp
    Chris Lattner 
    lattner at cs.uiuc.edu
       
    Fri Sep  8 12:11:25 PDT 2006
    
    
  
Changes in directory llvm/lib/CodeGen:
RegAllocLocal.cpp updated: 1.90 -> 1.91
---
Log message:
This fixes Benchmarks/Prolangs-C/unix-smail
---
Diffs of the changes:  (+2 -0)
 RegAllocLocal.cpp |    2 ++
 1 files changed, 2 insertions(+)
Index: llvm/lib/CodeGen/RegAllocLocal.cpp
diff -u llvm/lib/CodeGen/RegAllocLocal.cpp:1.90 llvm/lib/CodeGen/RegAllocLocal.cpp:1.91
--- llvm/lib/CodeGen/RegAllocLocal.cpp:1.90	Fri Sep  8 14:03:30 2006
+++ llvm/lib/CodeGen/RegAllocLocal.cpp	Fri Sep  8 14:11:11 2006
@@ -596,6 +596,8 @@
       if (MO.isRegister() && MO.isDef() && MO.getReg() &&
           MRegisterInfo::isPhysicalRegister(MO.getReg())) {
         unsigned Reg = MO.getReg();
+        if (PhysRegsUsed[Reg] == -2) continue;  // Something like ESP.
+            
         PhysRegsEverUsed[Reg] = true;
         spillPhysReg(MBB, MI, Reg, true); // Spill any existing value in the reg
         PhysRegsUsed[Reg] = 0;            // It is free and reserved now
    
    
More information about the llvm-commits
mailing list