projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cfc686
)
[NaryReassociate] remove redundant code
author
Jingyue Wu
<jingyue@google.com>
Thu, 23 Jul 2015 23:13:37 +0000
(23:13 +0000)
committer
Jingyue Wu
<jingyue@google.com>
Thu, 23 Jul 2015 23:13:37 +0000
(23:13 +0000)
This check is already done by findClosestMatchingDominator.
llvm-svn: 243065
llvm/lib/Transforms/Scalar/NaryReassociate.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Scalar/NaryReassociate.cpp
b/llvm/lib/Transforms/Scalar/NaryReassociate.cpp
index
f42f830
..
58b9c9d
100644
(file)
--- 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);