[PATCH] D45278: [LoopInterchange] Preserve LoopInfo after interchanging.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 4 11:45:30 PDT 2018


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

LoopInterchange relies on LoopInfo being up-to-date, so we should
preserve it after interchanging. This patch updates restructureLoops to
move the BBs of the interchanged loops to the right place.


https://reviews.llvm.org/D45278

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45278.141014.patch
Type: text/x-patch
Size: 6204 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180404/3af7d2bc/attachment.bin>


More information about the llvm-commits mailing list