[LoopDataPrefetch] If prefetch distance is not set, skip pass
authorAdam Nemet <anemet@apple.com>
Mon, 7 Mar 2016 18:35:42 +0000 (18:35 +0000)
committerAdam Nemet <anemet@apple.com>
Mon, 7 Mar 2016 18:35:42 +0000 (18:35 +0000)
commitbb3680bd8590b2dd817bbbb482badd6ebcbe6224
treedb6dcd6f9e10ef6a924b7ee4ab8172529ab3d854
parent5f5de9f89b3602d9ca323c0512e8dc8163f7b393
[LoopDataPrefetch] If prefetch distance is not set, skip pass

This lets select sub-targets enable this pass.  The patch implements the
idea from the recent llvm-dev thread:
http://thread.gmane.org/gmane.comp.compilers.llvm.devel/94925

The goal is to enable the LoopDataPrefetch pass for the Cyclone
sub-target only within Aarch64.

Positive and negative tests will be included in an upcoming patch that
enables selective prefetching of large-strided accesses on Cyclone.

llvm-svn: 262844
llvm/lib/Transforms/Scalar/LoopDataPrefetch.cpp