[PATCH] Add useAA() to TargetSubtargetInfo

Hal Finkel hfinkel at anl.gov
Wed Aug 28 14:42:18 PDT 2013


Andy, et al.,

This patch adds a Boolean useAA() to TargetSubtargetInfo. There are several optional (off-by-default) features in CodeGen that can make
use of alias analysis. These features are important for generating code for some kinds of cores (for example the (in-order) PPC A2 core). This adds a useAA() function to TargetSubtargetInfo to allow these features to be enabled by default on a per-subtarget basis.
    
The first patch adds TargetSubtargetInfo::useAA() and uses it to control the default of the -enable-aa-sched-mi feature.

The second patch uses TargetSubtargetInfo::useAA() to control the defaults of the -combiner-alias-analysis and -combiner-global-alias-analysis options. Why use the same function to control both the scheduling and DAGCombine defaults? Because I'd like to control them both in the same way, and DAGCombine is eventually going to go away and be replaced with something MI-like.

Please review.

Thanks again,
Hal

-- 
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory
-------------- next part --------------
A non-text attachment was scrubbed...
Name: codegen_useaa1.patch
Type: text/x-patch
Size: 7142 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130828/5aae4446/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: codegen_useaa2.patch
Type: text/x-patch
Size: 1696 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130828/5aae4446/attachment-0001.bin>


More information about the llvm-commits mailing list