[PATCH] D64618: [Loop Peeling] Fix the bug with IDom setting for exit loops

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 12 01:49:52 PDT 2019


skatkov created this revision.
skatkov added reviewers: reames, fhahn.
Herald added subscribers: zzheng, hiraditya.
Herald added a project: LLVM.

It is possible that loop exit has two predecessors in a loop body.
In this case after the peeling the iDom of the exit should be a clone of
iDom of original exit but no a clone of a block coming to this exit.


https://reviews.llvm.org/D64618

Files:
  llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp
  llvm/test/Transforms/LoopUnroll/peel-loop-pgo-deopt-idom.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64618.209428.patch
Type: text/x-patch
Size: 3926 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190712/44b65bd9/attachment.bin>


More information about the llvm-commits mailing list