[SCEVValidator] Remove redundant visit.

SCEVAddRecExpr::getStart() is synonymous to SCEVAddRecExpr::getOperand(0)
which will be visited in the following loop anyway.

llvm-svn: 262375
This commit is contained in:
Michael Kruse 2016-03-01 19:30:54 +00:00
parent f1e9cae00e
commit b3a7935d54
1 changed files with 0 additions and 3 deletions

View 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;