[PATCH] D24203: [LoopUnroll] Properly update loop-info when cloning prologues and epilogues.

Michael Zolotukhin via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 2 13:05:45 PDT 2016


mzolotukhin created this revision.
mzolotukhin added reviewers: chandlerc, sanjoy, hfinkel.
mzolotukhin added subscribers: silvas, llvm-commits.

When cloning blocks for prologue/epilogue we need to replicate the loop
structure from the original loop. It wasn't a problem for the innermost
loops, but it led to an incorrect loop info when we unrolled a loop with
a child loop - in this case created prologue-loop had a child loop, but
loop info didn't reflect that.

This fixes PR28888.

https://reviews.llvm.org/D24203

Files:
  lib/Transforms/Utils/LoopUnrollRuntime.cpp
  test/Transforms/LoopUnroll/pr28888.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24203.70213.patch
Type: text/x-patch
Size: 4726 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160902/3bc0c8e9/attachment.bin>


More information about the llvm-commits mailing list