[PowerPC] Really iterate over all loops in PPCLoopDataPrefetch/PPCLoopPreIncPrep
authorHal Finkel <hfinkel@anl.gov>
Sun, 12 Apr 2015 17:18:56 +0000 (17:18 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sun, 12 Apr 2015 17:18:56 +0000 (17:18 +0000)
commitad966559057ad30a77dccb47d85646d4c621a31c
treefc3daf6af77d2b95b9c647a1459f0d5c9de9f069
parente0f4a11a8971f0f736dec8392a066081753e26cd
[PowerPC] Really iterate over all loops in PPCLoopDataPrefetch/PPCLoopPreIncPrep

When I fixed these a couple of days ago to iterate over all loops, not just
depth == 1 loops, I inadvertently made it such that we'd only look at the first
top-level loop. Make sure that we really look at all of them.

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