Revamp the loop unroller, extending it to correctly update PHI nodes
authorDan Gohman <gohman@apple.com>
Mon, 23 Jun 2008 21:29:41 +0000 (21:29 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 23 Jun 2008 21:29:41 +0000 (21:29 +0000)
commit55e283c71eaa0428b63c901d726c0666f985ce85
treeff41a11ca9770a9898ccf94e693887afd8ff7b21
parentd17e44769fcd2ca4052ea0cd8890c8290a94a881
Revamp the loop unroller, extending it to correctly update PHI nodes
in the presence of out-of-loop users of in-loop values and the trip
count is not a known multiple of the unroll count, and to be a bit
simpler overall. This fixes PR2253.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52645 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/UnrollLoop.cpp
test/Transforms/LoopUnroll/multiple-phis.ll [new file with mode: 0644]
test/Transforms/LoopUnroll/pr2253.ll [new file with mode: 0644]