[PATCH] D53876: Preserve loop metadata when splitting exit blocks

Chang Lin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 30 10:45:44 PDT 2018


clin1 created this revision.
clin1 added reviewers: dmgreen, tvvikram.

LoopUtils.cpp contains a utility that splits an loop exit block, so that the new block contains only edges coming from the loop. In the case of nested loops, the exit path for the inner loop might also be the back-edge of the outer loop. The new block which is inserted on this path, is now a latch for the outer loop, and it needs to hold the loop metadata for the outer loop. (The test case gives a more concrete view of the situation.)


Repository:
  rL LLVM

https://reviews.llvm.org/D53876

Files:
  lib/Transforms/Utils/LoopUtils.cpp
  test/Transforms/LoopSimplify/preserve-llvm-loop-metadata2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53876.171724.patch
Type: text/x-patch
Size: 5260 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181030/1eb7295d/attachment.bin>


More information about the llvm-commits mailing list