1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00
llvm-mirror/test/Transforms/LoopInterchange
Congzhe Cao 41b67178f7 [LoopInterchange] Fix transformation bugs in loop interchange
After loop interchange, the (old) outer loop header should not jump to
the `LoopExit`. Note that the old outer loop becomes the new inner loop
after interchange. If we branched to `LoopExit` then after interchange
we would jump directly from the (new) inner loop header to `LoopExit`
without executing the rest of outer loop.

This patch modifies adjustLoopBranches() such that the old outer
loop header (which becomes the new inner loop header) jumps to the
old inner loop latch which becomes the new outer loop latch after
interchange.

Reviewed By: bmahjour

Differential Revision: https://reviews.llvm.org/D98475
2021-04-08 14:58:13 -04:00
..
call-instructions.ll
currentLimitation.ll
debuginfo.ll
inner-only-reductions.ll
interchange-flow-dep-outer.ll
interchange-insts-between-indvar.ll
interchange-no-deps.ll
interchangeable.ll
interchanged-loop-nest-3.ll
lcssa-preheader.ll [LoopInterchange] Fix transformation bugs in loop interchange 2021-04-08 14:58:13 -04:00
lcssa.ll
loop-interchange-optimization-remarks.ll
not-interchanged-dependencies-1.ll
not-interchanged-loop-nest-3.ll
not-interchanged-tightly-nested.ll
outer-header-jump-to-inner-latch.ll [LoopInterchange] Fix transformation bugs in loop interchange 2021-04-08 14:58:13 -04:00
outer-only-reductions.ll
perserve-lcssa.ll
phi-ordering.ll
pr43176-move-to-new-latch.ll
pr43473-invalid-lcssa-phis-in-inner-exit.ll
pr43797-lcssa-for-multiple-outer-loop-blocks.ll
pr45743-move-from-inner-preheader.ll
profitability.ll
reductions-across-inner-and-outer-loop.ll
update-condbranch-duplicate-successors.ll
vector-gep-operand.ll