De-tabify.
authorBill Wendling <isanbard@gmail.com>
Tue, 26 Feb 2008 10:53:30 +0000 (10:53 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 26 Feb 2008 10:53:30 +0000 (10:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47599 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp
lib/Transforms/Scalar/PredicateSimplifier.cpp

index ffa45c456802091e53f6e055b4fbb3ec4f19cd9e..1614d23d98829c06d9f948d6945edd799d647827 100644 (file)
@@ -2163,10 +2163,10 @@ Instruction *InstCombiner::visitAdd(BinaryOperator &I) {
         match(RHS, m_Mul(m_Value(Y), m_Value(Z)))) {
       if (W != Y) {
         if (W == Z) {
-         std::swap(Y, Z);
+          std::swap(Y, Z);
         } else if (Y == X) {
-         std::swap(W, X);
-       } else if (X == Z) {
+          std::swap(W, X);
+        } else if (X == Z) {
           std::swap(Y, Z);
           std::swap(W, X);
         }
@@ -9484,7 +9484,7 @@ Instruction *InstCombiner::visitFreeInst(FreeInst &FI) {
 
 /// InstCombineLoadCast - Fold 'load (cast P)' -> cast (load P)' when possible.
 static Instruction *InstCombineLoadCast(InstCombiner &IC, LoadInst &LI,
-                                       const TargetData *TD) {
+                                        const TargetData *TD) {
   User *CI = cast<User>(LI.getOperand(0));
   Value *CastOp = CI->getOperand(0);
 
@@ -9498,24 +9498,24 @@ static Instruction *InstCombineLoadCast(InstCombiner &IC, LoadInst &LI,
       unsigned numBits = Ty->getPrimitiveSizeInBits();
       // Replace LI with immediate integer store.
       if ((numBits >> 3) == len + 1) {
-       APInt StrVal(numBits, 0);
-       APInt SingleChar(numBits, 0);
-       if (TD->isLittleEndian()) {
-         for (signed i = len-1; i >= 0; i--) {
-           SingleChar = (uint64_t) Str[i];
-           StrVal = (StrVal << 8) | SingleChar;
-         }
-       } else {
-         for (unsigned i = 0; i < len; i++) {
-           SingleChar = (uint64_t) Str[i];
-               StrVal = (StrVal << 8) | SingleChar;
-         }
-         // Append NULL at the end.
-         SingleChar = 0;
-         StrVal = (StrVal << 8) | SingleChar;
-       }
-       Value *NL = ConstantInt::get(StrVal);
-       return IC.ReplaceInstUsesWith(LI, NL);
+        APInt StrVal(numBits, 0);
+        APInt SingleChar(numBits, 0);
+        if (TD->isLittleEndian()) {
+          for (signed i = len-1; i >= 0; i--) {
+            SingleChar = (uint64_t) Str[i];
+            StrVal = (StrVal << 8) | SingleChar;
+          }
+        } else {
+          for (unsigned i = 0; i < len; i++) {
+            SingleChar = (uint64_t) Str[i];
+            StrVal = (StrVal << 8) | SingleChar;
+          }
+          // Append NULL at the end.
+          SingleChar = 0;
+          StrVal = (StrVal << 8) | SingleChar;
+        }
+        Value *NL = ConstantInt::get(StrVal);
+        return IC.ReplaceInstUsesWith(LI, NL);
       }
     }
   }
index d0067b3302c627cdf8ce4b30b2bd8773bfbba91e..42ffc0edc2564b47fed8a7dc91ace9da390a7a43 100644 (file)
@@ -717,7 +717,7 @@ namespace {
 
           if (edge.LV == J->LV)
             return; // This update adds nothing new.
-       }
+        }
 
         if (I != B) {
           // We also have to tighten any edge beneath our update.
@@ -729,7 +729,7 @@ namespace {
             }
             if (K == B) break;
           }
-       }
+        }
 
         // Insert new edge at Subtree if it isn't already there.
         if (I == E || I->To != n || Subtree != I->Subtree)