]> granicus.if.org Git - llvm/commit
[PowerPC] Fix PPCLoopPreIncPrep for depth > 1 loops
authorHal Finkel <hfinkel@anl.gov>
Sat, 11 Apr 2015 00:33:08 +0000 (00:33 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sat, 11 Apr 2015 00:33:08 +0000 (00:33 +0000)
commitff49ef7838c32d96a9dcfe6cfdf0787023094823
treec4703b9e84a6e81b8a3b9780b8ee7402d8cbe608
parentc6665c6b72b60a7ac538f3b3097cb88c21a5fca8
[PowerPC] Fix PPCLoopPreIncPrep for depth > 1 loops

This pass had the same problem as the data-prefetching pass: it was only
checking for depth == 1 loops in practice. Fix that, add some debugging
statements, and make sure that, when we grab an AddRec, it is for the loop we
expect.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234670 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCLoopPreIncPrep.cpp
test/CodeGen/PowerPC/pip-inner.ll [new file with mode: 0644]