OSDN Git Service

[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)
commitd4f643a5df29ee85345508e4220fc21e30ab2581
tree64932b14a9f0e613a3916e7a2146d52a7c573c0f
parente749325463058c3df21185715cc1287029c3124b
[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.

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