[PATCH] D70059: [LoopInterchange] Only skip PHIs with incoming values from the inner loop.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 10 12:02:33 PST 2019


fhahn created this revision.
fhahn added reviewers: efriedma, mcrosier.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

Currently we have limited support for outer loops with multiple basic
blocks after the inner loop exit. But the current checks for creating
PHIs for loop exit values only assumes the header and latches of the
outer loop. It is better to just skip incoming values defined in the
original inner loops. Those are handled earlier.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70059

Files:
  llvm/lib/Transforms/Scalar/LoopInterchange.cpp
  llvm/test/Transforms/LoopInterchange/pr43797-lcssa-for-multiple-outer-loop-blocks.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70059.228619.patch
Type: text/x-patch
Size: 10297 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191110/dad4f42c/attachment-0001.bin>


More information about the llvm-commits mailing list