[SCEVValidator] Remove redundant visit.
authorMichael Kruse <llvm@meinersbur.de>
Tue, 1 Mar 2016 19:30:54 +0000 (19:30 +0000)
committerMichael 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

index c32b2ee..8a12650 100644 (file)
@@ -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;