forked from OSchip/llvm-project
Revert untested changes in SCEVAffinator
llvm-svn: 327221
This commit is contained in:
parent
cc24096d4d
commit
5fdbdeb542
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue