summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-29 15:30:29 +0000
committerDan Gohman <gohman@apple.com>2010-08-29 15:30:29 +0000
commit37a0f6803640335a6619d6a13545fb1b785fc523 (patch)
treeb6a76973d9db89d1d8b4063bc0c7f6d1649719da /llvm/lib/Transforms
parentb6a520d63cad7cdb229324a768fc0a4e62390782 (diff)
downloadbcm5719-llvm-37a0f6803640335a6619d6a13545fb1b785fc523.tar.gz
bcm5719-llvm-37a0f6803640335a6619d6a13545fb1b785fc523.zip
Delete a bogus check.
llvm-svn: 112438
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index d3d17a96527..17ff08d96c7 100644
--- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud