[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp

Evan Cheng evan.cheng at apple.com
Mon Mar 19 11:08:43 PDT 2007



Changes in directory llvm/lib/CodeGen:

LiveIntervalAnalysis.cpp updated: 1.224 -> 1.225
---
Log message:

Remove -reduce-joining-phys-regs options. Make it on by default.

---
Diffs of the changes:  (+1 -3)

 LiveIntervalAnalysis.cpp |    4 +---
 1 files changed, 1 insertion(+), 3 deletions(-)


Index: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.224 llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.225
--- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.224	Sun Mar 18 23:22:35 2007
+++ llvm/lib/CodeGen/LiveIntervalAnalysis.cpp	Mon Mar 19 13:08:26 2007
@@ -42,7 +42,6 @@
 STATISTIC(numPeep     , "Number of identity moves eliminated after coalescing");
 STATISTIC(numFolded   , "Number of loads/stores folded into instructions");
 STATISTIC(numAborts   , "Number of times interval joining aborted");
-static cl::opt<bool> ReduceJoinPhys("reduce-joining-phy-regs", cl::Hidden);
 
 namespace {
   RegisterPass<LiveIntervals> X("liveintervals", "Live Interval Analysis");
@@ -937,8 +936,7 @@
   // virtual register. Once the coalescing is done, it cannot be broken and
   // these are not spillable! If the destination interval uses are far away,
   // think twice about coalescing them!
-  if (ReduceJoinPhys && !mopd->isDead() &&
-      MRegisterInfo::isPhysicalRegister(repSrcReg)) {
+  if (!mopd->isDead() && MRegisterInfo::isPhysicalRegister(repSrcReg)) {
     // Small function. No need to worry!
     unsigned Threshold = allocatableRegs_.count() * 2;
     if (r2iMap_.size() <= Threshold)






More information about the llvm-commits mailing list