[polly] r244736 - Remove identity operation from SCEVAffinator
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 12 03:58:01 PDT 2015
Author: jdoerfert
Date: Wed Aug 12 05:58:01 2015
New Revision: 244736
URL: http://llvm.org/viewvc/llvm-project?rev=244736&view=rev
Log:
Remove identity operation from SCEVAffinator
Modified:
polly/trunk/lib/Support/SCEVAffinator.cpp
Modified: polly/trunk/lib/Support/SCEVAffinator.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/SCEVAffinator.cpp?rev=244736&r1=244735&r2=244736&view=diff
==============================================================================
--- polly/trunk/lib/Support/SCEVAffinator.cpp (original)
+++ polly/trunk/lib/Support/SCEVAffinator.cpp Wed Aug 12 05:58:01 2015
@@ -152,7 +152,6 @@ SCEVAffinator::visitAddRecExpr(const SCE
assert(S->getRegion().contains(Expr->getLoop()) &&
"Scop does not contain the loop referenced in this AddRec");
- isl_pw_aff *Start = visit(Expr->getStart());
isl_pw_aff *Step = visit(Expr->getOperand(1));
isl_space *Space = isl_space_set_alloc(Ctx, 0, NumIterators);
isl_local_space *LocalSpace = isl_local_space_from_space(Space);
@@ -164,7 +163,7 @@ SCEVAffinator::visitAddRecExpr(const SCE
isl_pw_aff *LPwAff = isl_pw_aff_from_aff(LAff);
// TODO: Do we need to check for NSW and NUW?
- return isl_pw_aff_add(Start, isl_pw_aff_mul(Step, LPwAff));
+ return isl_pw_aff_mul(Step, LPwAff);
}
// Translate AddRecExpr from '{start, +, inc}' into 'start + {0, +, inc}'
More information about the llvm-commits
mailing list