[PATCH] D37153: [LoopUnroll] Properly update the loop preheader in case of successful peeling

Davide Italiano via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 25 10:25:49 PDT 2017


davide created this revision.

When peeling kicks in, it updates the loop preheader.
Later, a successful full unroll of the loop needs to update a PHI which i-th argument comes from the loop preheader, so it'd better look at the correct block.
Fixes https://bugs.llvm.org/show_bug.cgi?id=33437


https://reviews.llvm.org/D37153

Files:
  lib/Transforms/Utils/LoopUnroll.cpp
  test/Transforms/LoopUnroll/SystemZ/lit.local.cfg
  test/Transforms/LoopUnroll/SystemZ/pr33437.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37153.112711.patch
Type: text/x-patch
Size: 6441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170825/c36b70e6/attachment.bin>


More information about the llvm-commits mailing list