summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJingyue Wu <jingyue@google.com>2015-07-23 23:13:37 +0000
committerJingyue Wu <jingyue@google.com>2015-07-23 23:13:37 +0000
commit2e424da39b08f7601291adf2dd3c09475c14d8a6 (patch)
tree554b93f970ea60ece12d8d74325a8395c66c21c5 /llvm/lib
parent8cfc68677cd69c52ac9af50bac90410a98e1972e (diff)
downloadbcm5719-llvm-2e424da39b08f7601291adf2dd3c09475c14d8a6.tar.gz
bcm5719-llvm-2e424da39b08f7601291adf2dd3c09475c14d8a6.zip
[NaryReassociate] remove redundant code
This check is already done by findClosestMatchingDominator. llvm-svn: 243065
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/NaryReassociate.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Scalar/NaryReassociate.cpp b/llvm/lib/Transforms/Scalar/NaryReassociate.cpp
index f42f8306fcc..58b9c9d092d 100644
--- a/llvm/lib/Transforms/Scalar/NaryReassociate.cpp
+++ b/llvm/lib/Transforms/Scalar/NaryReassociate.cpp
@@ -508,11 +508,6 @@ Instruction *NaryReassociate::tryReassociateAdd(Value *LHS, Value *RHS,
Instruction *NaryReassociate::tryReassociatedAdd(const SCEV *LHSExpr,
Value *RHS, Instruction *I) {
- auto Pos = SeenExprs.find(LHSExpr);
- // Bail out if LHSExpr is not previously seen.
- if (Pos == SeenExprs.end())
- return nullptr;
-
// Look for the closest dominator LHS of I that computes LHSExpr, and replace
// I with LHS + RHS.
auto *LHS = findClosestMatchingDominator(LHSExpr, I);
OpenPOWER on IntegriCloud