From d9974cc9131e8f3a342b4b12941a9cb7cb7228b0 Mon Sep 17 00:00:00 2001 From: Andrew Kaylor Date: Tue, 26 Apr 2016 23:49:41 +0000 Subject: Add optimization bisect opt-in calls for SystemZ passes Differential Revision: http://reviews.llvm.org/D19562 llvm-svn: 267636 --- llvm/lib/Target/SystemZ/SystemZElimCompare.cpp | 3 +++ llvm/lib/Target/SystemZ/SystemZLDCleanup.cpp | 3 +++ llvm/lib/Target/SystemZ/SystemZShortenInst.cpp | 3 +++ 3 files changed, 9 insertions(+) (limited to 'llvm/lib/Target/SystemZ') diff --git a/llvm/lib/Target/SystemZ/SystemZElimCompare.cpp b/llvm/lib/Target/SystemZ/SystemZElimCompare.cpp index becfee94900..66509553714 100644 --- a/llvm/lib/Target/SystemZ/SystemZElimCompare.cpp +++ b/llvm/lib/Target/SystemZ/SystemZElimCompare.cpp @@ -500,6 +500,9 @@ bool SystemZElimCompare::processBlock(MachineBasicBlock &MBB) { } bool SystemZElimCompare::runOnMachineFunction(MachineFunction &F) { + if (skipFunction(*F.getFunction())) + return false; + TII = static_cast(F.getSubtarget().getInstrInfo()); TRI = &TII->getRegisterInfo(); diff --git a/llvm/lib/Target/SystemZ/SystemZLDCleanup.cpp b/llvm/lib/Target/SystemZ/SystemZLDCleanup.cpp index 24165be29ae..ff81e6b0a49 100644 --- a/llvm/lib/Target/SystemZ/SystemZLDCleanup.cpp +++ b/llvm/lib/Target/SystemZ/SystemZLDCleanup.cpp @@ -64,6 +64,9 @@ void SystemZLDCleanup::getAnalysisUsage(AnalysisUsage &AU) const { } bool SystemZLDCleanup::runOnMachineFunction(MachineFunction &F) { + if (skipFunction(*F.getFunction())) + return false; + TII = static_cast(F.getSubtarget().getInstrInfo()); MF = &F; diff --git a/llvm/lib/Target/SystemZ/SystemZShortenInst.cpp b/llvm/lib/Target/SystemZ/SystemZShortenInst.cpp index 299ff717da1..41ef3b340e2 100644 --- a/llvm/lib/Target/SystemZ/SystemZShortenInst.cpp +++ b/llvm/lib/Target/SystemZ/SystemZShortenInst.cpp @@ -268,6 +268,9 @@ bool SystemZShortenInst::processBlock(MachineBasicBlock &MBB) { } bool SystemZShortenInst::runOnMachineFunction(MachineFunction &F) { + if (skipFunction(*F.getFunction())) + return false; + const SystemZSubtarget &ST = F.getSubtarget(); TII = ST.getInstrInfo(); TRI = ST.getRegisterInfo(); -- cgit v1.2.3