Delete a bogus check.
authorDan Gohman <gohman@apple.com>
Sun, 29 Aug 2010 15:30:29 +0000 (15:30 +0000)
committerDan Gohman <gohman@apple.com>
Sun, 29 Aug 2010 15:30:29 +0000 (15:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112438 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopStrengthReduce.cpp

index d3d17a96527136b5872e0a6e988243d640a27ab5..17ff08d96c78d6a26fe581c6beebfe79e1f81137 100644 (file)
@@ -1954,8 +1954,7 @@ LSRInstance::FindUseWithSimilarFormula(const Formula &OrigF,
         if (F.BaseRegs == OrigF.BaseRegs &&
             F.ScaledReg == OrigF.ScaledReg &&
             F.AM.BaseGV == OrigF.AM.BaseGV &&
-            F.AM.Scale == OrigF.AM.Scale &&
-            LU.Kind) {
+            F.AM.Scale == OrigF.AM.Scale) {
           if (F.AM.BaseOffs == 0)
             return &LU;
           // This is the formula where all the registers and symbols matched;