summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/NVPTX/NVPTXPeephole.cpp
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2016-04-26 23:44:31 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2016-04-26 23:44:31 +0000
commit87b10dd7b38a17fe154fe15211d76abc3d9ddf26 (patch)
treee272f36f72376013250e6890400e3320b9e459a4 /llvm/lib/Target/NVPTX/NVPTXPeephole.cpp
parent4ff3cfb6733235b8fbf1f08f1f53bedc37d86e9f (diff)
downloadbcm5719-llvm-87b10dd7b38a17fe154fe15211d76abc3d9ddf26.tar.gz
bcm5719-llvm-87b10dd7b38a17fe154fe15211d76abc3d9ddf26.zip
Add optimization bisect opt-in calls for NVPTX passes
Differential Revision: http://reviews.llvm.org/D19518 llvm-svn: 267635
Diffstat (limited to 'llvm/lib/Target/NVPTX/NVPTXPeephole.cpp')
-rw-r--r--llvm/lib/Target/NVPTX/NVPTXPeephole.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/NVPTX/NVPTXPeephole.cpp b/llvm/lib/Target/NVPTX/NVPTXPeephole.cpp
index a61c291d233..7d0cd553e03 100644
--- a/llvm/lib/Target/NVPTX/NVPTXPeephole.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXPeephole.cpp
@@ -125,6 +125,9 @@ static void CombineCVTAToLocal(MachineInstr &Root) {
}
bool NVPTXPeephole::runOnMachineFunction(MachineFunction &MF) {
+ if (skipFunction(*MF.getFunction()))
+ return false;
+
bool Changed = false;
// Loop over all of the basic blocks.
for (auto &MBB : MF) {
OpenPOWER on IntegriCloud