From: Dan Gohman Date: Sun, 29 Aug 2010 15:30:29 +0000 (+0000) Subject: Delete a bogus check. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e39a47c5b3bdab84f98046fc133a89170a9f0ee9;p=oota-llvm.git Delete a bogus check. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112438 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index d3d17a96527..17ff08d96c7 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -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;