summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCSubtarget.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-05-21 23:40:26 +0000
committerEric Christopher <echristo@gmail.com>2014-05-21 23:40:26 +0000
commit189fe78e2f8be4e1eb166c495788aa4d4c87517c (patch)
treea272ee3fd53acc8d0d4354e9052399b9645150c0 /lib/Target/PowerPC/PPCSubtarget.h
parent595bdb7e8badc2f71f97c5e3acc4f0ce999a2e97 (diff)
downloadllvm-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 'lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r--lib/Target/PowerPC/PPCSubtarget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCSubtarget.h b/lib/Target/PowerPC/PPCSubtarget.h
index 76f4a318e8..ee43fd5f80 100644
--- a/lib/Target/PowerPC/PPCSubtarget.h
+++ b/lib/Target/PowerPC/PPCSubtarget.h
@@ -205,6 +205,8 @@ public:
TargetSubtargetInfo::AntiDepBreakMode& Mode,
RegClassVector& CriticalPathRCs) const override;
+ bool enableEarlyIfConversion() const override { return hasISEL(); }
+
// Scheduling customization.
bool enableMachineScheduler() const override;
void overrideSchedPolicy(MachineSchedPolicy &Policy,