From b3a7935d549c1d73729a4666ec6133e80658ce34 Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Tue, 1 Mar 2016 19:30:54 +0000 Subject: [PATCH] [SCEVValidator] Remove redundant visit. 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 | 3 --- 1 file changed, 3 deletions(-) diff --git a/polly/lib/Support/SCEVValidator.cpp b/polly/lib/Support/SCEVValidator.cpp index c32b2ee..8a12650 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; -- 2.7.4