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:
f1e9cae
)
[SCEVValidator] Remove redundant visit.
author
Michael Kruse
<llvm@meinersbur.de>
Tue, 1 Mar 2016 19:30:54 +0000
(19:30 +0000)
committer
Michael Kruse
<llvm@meinersbur.de>
Tue, 1 Mar 2016 19:30:54 +0000
(19:30 +0000)
SCEVAddRecExpr::getStart() is synonymous to SCEVAddRecExpr::getOperand(0)
which will be visited in the following loop anyway.
llvm-svn: 262375
polly/lib/Support/SCEVValidator.cpp
patch
|
blob
|
history
diff --git
a/polly/lib/Support/SCEVValidator.cpp
b/polly/lib/Support/SCEVValidator.cpp
index
c32b2ee
..
8a12650
100644
(file)
--- a/
polly/lib/Support/SCEVValidator.cpp
+++ b/
polly/lib/Support/SCEVValidator.cpp
@@
-476,9
+476,6
@@
public:
}
bool visitAddRecExpr(const SCEVAddRecExpr *Expr) {
- if (visit(Expr->getStart()))
- return true;
-
for (size_t i = 0; i < Expr->getNumOperands(); ++i)
if (visit(Expr->getOperand(i)))
return true;