diff options
| author | Michael Kruse <llvm@meinersbur.de> | 2016-03-01 19:30:54 +0000 |
|---|---|---|
| committer | Michael Kruse <llvm@meinersbur.de> | 2016-03-01 19:30:54 +0000 |
| commit | b3a7935d549c1d73729a4666ec6133e80658ce34 (patch) | |
| tree | b204fa3cde6859b7c6f52c01075821e8e59a4e35 | |
| parent | f1e9cae00e2322756324b5489dc48d533e5dd41d (diff) | |
| download | bcm5719-llvm-b3a7935d549c1d73729a4666ec6133e80658ce34.tar.gz bcm5719-llvm-b3a7935d549c1d73729a4666ec6133e80658ce34.zip | |
[SCEVValidator] Remove redundant visit.
SCEVAddRecExpr::getStart() is synonymous to SCEVAddRecExpr::getOperand(0)
which will be visited in the following loop anyway.
llvm-svn: 262375
| -rw-r--r-- | polly/lib/Support/SCEVValidator.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/polly/lib/Support/SCEVValidator.cpp b/polly/lib/Support/SCEVValidator.cpp index c32b2eef881..8a1265030fa 100644 --- 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; |

