[llvm-commits] CVS: llvm/lib/Transforms/Scalar/ADCE.cpp InstructionCombining.cpp LoopUnroll.cpp SCCP.cpp

Jeff Cohen jeffc at jolt-lang.org
Sat Apr 23 14:38:48 PDT 2005



Changes in directory llvm/lib/Transforms/Scalar:

ADCE.cpp updated: 1.91 -> 1.92
InstructionCombining.cpp updated: 1.325 -> 1.326
LoopUnroll.cpp updated: 1.17 -> 1.18
SCCP.cpp updated: 1.123 -> 1.124
---
Log message:

Eliminate tabs and trailing spaces

---
Diffs of the changes:  (+13 -13)

 ADCE.cpp                 |    2 +-
 InstructionCombining.cpp |    6 +++---
 LoopUnroll.cpp           |    2 +-
 SCCP.cpp                 |   16 ++++++++--------
 4 files changed, 13 insertions(+), 13 deletions(-)


Index: llvm/lib/Transforms/Scalar/ADCE.cpp
diff -u llvm/lib/Transforms/Scalar/ADCE.cpp:1.91 llvm/lib/Transforms/Scalar/ADCE.cpp:1.92
--- llvm/lib/Transforms/Scalar/ADCE.cpp:1.91	Thu Apr 21 18:45:12 2005
+++ llvm/lib/Transforms/Scalar/ADCE.cpp	Sat Apr 23 16:38:35 2005
@@ -229,7 +229,7 @@
                  isa<UnwindInst>(I) || isa<UnreachableInst>(I)) {
         // FIXME: Unreachable instructions should not be marked intrinsically
         // live here.
-	markInstructionLive(I);
+        markInstructionLive(I);
       } else if (isInstructionTriviallyDead(I)) {
         // Remove the instruction from it's basic block...
         BB->getInstList().erase(I);


Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.325 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.326
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.325	Sat Apr 23 10:31:55 2005
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Sat Apr 23 16:38:35 2005
@@ -2896,7 +2896,7 @@
                                                       I.getName()), I);
           }
         }
-        
+
         if (Op1)
           return new SelectInst(LHSI->getOperand(0), Op1, Op2);
         break;
@@ -4640,9 +4640,9 @@
       if (ConstantStruct *CS = dyn_cast<ConstantStruct>(C)) {
         C = CS->getOperand(El);
       } else if (isa<ConstantAggregateZero>(C)) {
-	C = Constant::getNullValue(STy->getElementType(El));
+        C = Constant::getNullValue(STy->getElementType(El));
       } else if (isa<UndefValue>(C)) {
-	C = UndefValue::get(STy->getElementType(El));
+        C = UndefValue::get(STy->getElementType(El));
       } else {
         return 0;
       }


Index: llvm/lib/Transforms/Scalar/LoopUnroll.cpp
diff -u llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.17 llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.18
--- llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.17	Thu Apr 21 18:45:12 2005
+++ llvm/lib/Transforms/Scalar/LoopUnroll.cpp	Sat Apr 23 16:38:35 2005
@@ -88,7 +88,7 @@
       } else if (I->hasOneUse() && I->use_back() == Term) {
         // Ignore instructions only used by the loop terminator.
       } else if (DbgInfoIntrinsic *DbgI = dyn_cast<DbgInfoIntrinsic>(I)) {
-	// Ignore debug instructions
+        // Ignore debug instructions
       } else {
         ++Size;
       }


Index: llvm/lib/Transforms/Scalar/SCCP.cpp
diff -u llvm/lib/Transforms/Scalar/SCCP.cpp:1.123 llvm/lib/Transforms/Scalar/SCCP.cpp:1.124
--- llvm/lib/Transforms/Scalar/SCCP.cpp:1.123	Thu Apr 21 18:45:12 2005
+++ llvm/lib/Transforms/Scalar/SCCP.cpp	Sat Apr 23 16:38:35 2005
@@ -835,13 +835,13 @@
     // Transform load (constantexpr_GEP global, 0, ...) into the value loaded.
     if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Ptr))
       if (CE->getOpcode() == Instruction::GetElementPtr)
-	if (GlobalVariable *GV = dyn_cast<GlobalVariable>(CE->getOperand(0)))
-	  if (GV->isConstant() && !GV->isExternal())
-	    if (Constant *V =
-		GetGEPGlobalInitializer(GV->getInitializer(), CE)) {
-	      markConstant(IV, &I, V);
-	      return;
-	    }
+    if (GlobalVariable *GV = dyn_cast<GlobalVariable>(CE->getOperand(0)))
+      if (GV->isConstant() && !GV->isExternal())
+        if (Constant *V =
+        GetGEPGlobalInitializer(GV->getInitializer(), CE)) {
+          markConstant(IV, &I, V);
+          return;
+        }
   }
 
   // Otherwise we cannot say for certain what value this load will produce.
@@ -915,7 +915,7 @@
 void SCCPSolver::Solve() {
   // Process the work lists until they are empty!
   while (!BBWorkList.empty() || !InstWorkList.empty() ||
-	 !OverdefinedInstWorkList.empty()) {
+         !OverdefinedInstWorkList.empty()) {
     // Process the instruction work list...
     while (!OverdefinedInstWorkList.empty()) {
       Value *I = OverdefinedInstWorkList.back();






More information about the llvm-commits mailing list