[PATCH] D115238: [LoopInterchange] Remove a limitation in legality
Bardia Mahjour via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 23 13:52:30 PST 2021
bmahjour added a comment.
> Right now we split at the branch instruction of for2, and we duplicate %j.next = add nuw nsw i64 %j, 1 and %exitcond = icmp eq i64 %j, 99 into for2.split which becomes the new outer latch. Instructions in the original inner latch stay where they are. Hence the limitation can be removed.
Do we check to make sure duplicating instructions is safe (eg we are not duplicating side effects, etc)?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115238/new/
https://reviews.llvm.org/D115238
More information about the llvm-commits
mailing list