summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2017-01-25 04:25:02 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2017-01-25 04:25:02 +0000
commit9f5e0ef0c549a7374701b496e0bbe93425fb021f (patch)
tree1fcc7fc1556cd041f0889768128f9762023d1297 /llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
parente7dbebf182b92b49883649b7ca3408892273598b (diff)
downloadbcm5719-llvm-9f5e0ef0c549a7374701b496e0bbe93425fb021f.tar.gz
bcm5719-llvm-9f5e0ef0c549a7374701b496e0bbe93425fb021f.zip
AMDGPU: Implement early ifcvt target hooks.
Leave early ifcvt disabled for now since there are some shader-db regressions. This causes some immediate improvements, but could be better. The cost checking that the pass does is based on critical path length for out of order CPUs which we do not want so it skips out on many cases we want. llvm-svn: 293016
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
index c055b8c5f79..37a21c25a50 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
+++ b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
@@ -526,6 +526,11 @@ public:
this->GISel.reset(&GISel);
}
+ // XXX - Why is this here if it isn't in the default pass set?
+ bool enableEarlyIfConversion() const override {
+ return true;
+ }
+
void overrideSchedPolicy(MachineSchedPolicy &Policy,
unsigned NumRegionInstrs) const override;
OpenPOWER on IntegriCloud