commit | 5e8dffb15684c9bae609660c40dc2d14354a8276 | [log] [tgz] |
---|---|---|
author | Davide Italiano <davide@freebsd.org> | Mon Aug 28 20:29:33 2017 +0000 |
committer | Davide Italiano <davide@freebsd.org> | Mon Aug 28 20:29:33 2017 +0000 |
tree | 8b09b510f8f5b0bbe2b3678167dd4bbcfb59a683 | |
parent | eb8f624e3defe842e8c828ee1110d83a572636d7 [diff] |
[LoopUnroll] Properly update loop structure in case of successful peeling. 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 PR33437. Differential Revision: https://reviews.llvm.org/D37153 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311922 91177308-0d34-0410-b5e6-96231b3b80d8