[polly] r262375 - [SCEVValidator] Remove redundant visit.
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 1 11:30:55 PST 2016
Author: meinersbur
Date: Tue Mar 1 13:30:54 2016
New Revision: 262375
URL: http://llvm.org/viewvc/llvm-project?rev=262375&view=rev
Log:
[SCEVValidator] Remove redundant visit.
SCEVAddRecExpr::getStart() is synonymous to SCEVAddRecExpr::getOperand(0)
which will be visited in the following loop anyway.
Modified:
polly/trunk/lib/Support/SCEVValidator.cpp
Modified: polly/trunk/lib/Support/SCEVValidator.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/SCEVValidator.cpp?rev=262375&r1=262374&r2=262375&view=diff
==============================================================================
--- polly/trunk/lib/Support/SCEVValidator.cpp (original)
+++ polly/trunk/lib/Support/SCEVValidator.cpp Tue Mar 1 13:30:54 2016
@@ -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;
More information about the llvm-commits
mailing list