[PATCH] D52154: [LoopInterchange] Preserve LCSSA.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 16 13:18:58 PDT 2018


fhahn created this revision.
fhahn added reviewers: efriedma, mcrosier, davide.

This patch extends LoopInterchange to move LCSSA to the right place
after interchanging. This is required for LoopInterchange to become a
function pass.

An alternative to the manual moving of the PHIs, we could also re-form
the LCSSA phis for a set of interchanged loops, but that's more
expensive.


https://reviews.llvm.org/D52154

Files:
  lib/Transforms/Scalar/LoopInterchange.cpp
  test/Transforms/LoopInterchange/interchangeable.ll
  test/Transforms/LoopInterchange/lcssa.ll
  test/Transforms/LoopInterchange/phi-ordering.ll
  test/Transforms/LoopInterchange/reductions.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52154.165692.patch
Type: text/x-patch
Size: 11290 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180916/bdebabcb/attachment.bin>


More information about the llvm-commits mailing list