[llvm-commits] CVS: llvm/lib/Reoptimizer/BinInterface/emit.cpp

Anand Shukla ashukla at cs.uiuc.edu
Wed Jun 4 04:41:01 PDT 2003


Changes in directory llvm/lib/Reoptimizer/BinInterface:

emit.cpp updated: 1.4 -> 1.5

---
Log message:

Fixed some bugs with register pressure and spills, and added some more ALU instruction constructors

---
Diffs of the changes:

Index: llvm/lib/Reoptimizer/BinInterface/emit.cpp
diff -u llvm/lib/Reoptimizer/BinInterface/emit.cpp:1.4 llvm/lib/Reoptimizer/BinInterface/emit.cpp:1.5
--- llvm/lib/Reoptimizer/BinInterface/emit.cpp:1.4	Sat May 31 17:07:45 2003
+++ llvm/lib/Reoptimizer/BinInterface/emit.cpp	Wed Jun  4 04:40:43 2003
@@ -231,7 +231,9 @@
   // and allocate space for them in the prolog (and save)
   // Do not touch reg 0
   unsigned save_regs = regs.touched_regs & ~ regs.liveout_regs & ~1;
-  
+  if(regs.spillreg)
+    save_regs |= (1<<regs.spillreg);
+
   unsigned save_area = stack_size;
 
   //add to the stack size, the regs being saved in prolog





More information about the llvm-commits mailing list