aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Signposts.cpp
diff options
context:
space:
mode:
authorCongzhe Cao <congzhe.cao@huawei.com>2021-04-08 14:53:09 -0400
committerCongzheUalberta <congzhecao@gmail.com>2021-04-08 14:58:13 -0400
commitce2db9005d701ffbd786f395ff8065ca9fdadea9 (patch)
treeeb76c1a802884340227dbebe4908646337ccff9e /llvm/lib/Support/Signposts.cpp
parent461b554999811ca76cb252a0ed8e14f0b8b86e1a (diff)
downloadllvm-ce2db9005d701ffbd786f395ff8065ca9fdadea9.zip
llvm-ce2db9005d701ffbd786f395ff8065ca9fdadea9.tar.gz
llvm-ce2db9005d701ffbd786f395ff8065ca9fdadea9.tar.bz2
[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
Diffstat (limited to 'llvm/lib/Support/Signposts.cpp')
0 files changed, 0 insertions, 0 deletions