[llvm-commits] [llvm] r115593 - /llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp

Michael J. Spencer bigcheesegs at gmail.com
Mon Oct 4 23:00:34 PDT 2010


Author: mspencer
Date: Tue Oct  5 01:00:33 2010
New Revision: 115593

URL: http://llvm.org/viewvc/llvm-project?rev=115593&view=rev
Log:
Cleanup Whitespace.

Modified:
    llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp?rev=115593&r1=115592&r2=115593&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp Tue Oct  5 01:00:33 2010
@@ -230,7 +230,7 @@
       MBB.addLiveIn(Reg);
 
     // Insert the spill to the stack frame. The register is killed at the spill
-    // 
+    //
     const TargetRegisterClass *RC = TRI->getMinimalPhysRegClass(Reg);
     storeRegToStackSlot(MBB, MI, Reg, isKill,
                         CSI[i].getFrameIdx(), RC, TRI);
@@ -1205,7 +1205,7 @@
                                            float Confidence) const {
   if (!NumInstrs)
     return false;
-  
+
   // Use old-style heuristics
   if (OldARMIfCvt) {
     if (Subtarget.getCPUString() == "generic")
@@ -1215,18 +1215,18 @@
       return NumInstrs <= 3;
     return NumInstrs <= 2;
   }
-  
+
   // Attempt to estimate the relative costs of predication versus branching.
   float UnpredCost = Probability * NumInstrs;
   UnpredCost += 1.0; // The branch itself
   UnpredCost += (1.0 - Confidence) * Subtarget.getMispredictionPenalty();
-  
+
   float PredCost = NumInstrs;
-  
+
   return PredCost < UnpredCost;
-  
+
 }
-  
+
 bool ARMBaseInstrInfo::
 isProfitableToIfCvt(MachineBasicBlock &TMBB, unsigned NumT,
                     MachineBasicBlock &FMBB, unsigned NumF,
@@ -1238,14 +1238,14 @@
 
   if (!NumT || !NumF)
     return false;
-  
+
   // Attempt to estimate the relative costs of predication versus branching.
   float UnpredCost = Probability * NumT + (1.0 - Probability) * NumF;
   UnpredCost += 1.0; // The branch itself
   UnpredCost += (1.0 - Confidence) * Subtarget.getMispredictionPenalty();
-  
+
   float PredCost = NumT + NumF;
-  
+
   return PredCost < UnpredCost;
 }
 
@@ -1637,7 +1637,7 @@
     } else {
       // Assume the worst.
       return NumRegs;
-    }      
+    }
   }
   }
 }





More information about the llvm-commits mailing list