Revert untested changes in SCEVAffinator

llvm-svn: 327221
This commit is contained in:
Tobias Grosser 2018-03-10 19:15:23 +00:00
parent cc24096d4d
commit 5fdbdeb542
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ isl::pw_aff SCEVAffinator::addModuloSemantic(isl::pw_aff PWA,
isl::pw_aff AddPW =
isl::manage(getWidthExpValOnDomain(Width - 1, Domain.take()));
return ((PWA + AddPW) % ModVal) - AddPW;
return PWA.add(AddPW).mod(ModVal).sub(AddPW);
}
bool SCEVAffinator::hasNSWAddRecForLoop(Loop *L) const {