diff options
author | Eric Christopher <echristo@gmail.com> | 2014-05-21 23:40:26 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-05-21 23:40:26 +0000 |
commit | 189fe78e2f8be4e1eb166c495788aa4d4c87517c (patch) | |
tree | a272ee3fd53acc8d0d4354e9052399b9645150c0 /include | |
parent | 595bdb7e8badc2f71f97c5e3acc4f0ce999a2e97 (diff) | |
download | llvm-189fe78e2f8be4e1eb166c495788aa4d4c87517c.tar.gz llvm-189fe78e2f8be4e1eb166c495788aa4d4c87517c.tar.bz2 llvm-189fe78e2f8be4e1eb166c495788aa4d4c87517c.tar.xz |
Make early if conversion dependent upon the subtarget and add
a subtarget hook to enable. Unconditionally add to the pass pipeline
for targets that might want to use it. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209340 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetSubtargetInfo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetSubtargetInfo.h b/include/llvm/Target/TargetSubtargetInfo.h index e3febfb40f..c0c342b22e 100644 --- a/include/llvm/Target/TargetSubtargetInfo.h +++ b/include/llvm/Target/TargetSubtargetInfo.h @@ -94,6 +94,9 @@ public: /// scheduling, DAGCombine, etc.). virtual bool useAA() const; + /// \brief Enable the use of the early if conversion pass. + virtual bool enableEarlyIfConversion() const { return false; } + /// \brief Reset the features for the subtarget. virtual void resetSubtargetFeatures(const MachineFunction *MF) { } }; |