[PowerPC] Prefetching should also consider depth > 1 loops
authorHal Finkel <hfinkel@anl.gov>
Fri, 10 Apr 2015 15:05:02 +0000 (15:05 +0000)
committerHal Finkel <hfinkel@anl.gov>
Fri, 10 Apr 2015 15:05:02 +0000 (15:05 +0000)
commita9fceb803d8d7d39ce9714009f273bd0c9e8ac69
tree9da102a8cbbd77572f061c7b8b1329a4a65aba28
parentea1f332b793f44c1100341077da5de92aa68a0af
[PowerPC] Prefetching should also consider depth > 1 loops

Iterating over loops from the LoopInfo instance only provides top-level loops.
We need to search the whole tree of loops to find the inner ones.

llvm-svn: 234603
llvm/lib/Target/PowerPC/PPCLoopDataPrefetch.cpp
llvm/test/CodeGen/PowerPC/loop-data-prefetch-inner.ll [new file with mode: 0644]