OSDN Git Service

Add optimization bisect opt-in calls for SystemZ passes
authorAndrew Kaylor <andrew.kaylor@intel.com>
Tue, 26 Apr 2016 23:49:41 +0000 (23:49 +0000)
committerAndrew Kaylor <andrew.kaylor@intel.com>
Tue, 26 Apr 2016 23:49:41 +0000 (23:49 +0000)
Differential Revision: http://reviews.llvm.org/D19562

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267636 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SystemZ/SystemZElimCompare.cpp
lib/Target/SystemZ/SystemZLDCleanup.cpp
lib/Target/SystemZ/SystemZShortenInst.cpp

index becfee9..6650955 100644 (file)
@@ -500,6 +500,9 @@ bool SystemZElimCompare::processBlock(MachineBasicBlock &MBB) {
 }
 
 bool SystemZElimCompare::runOnMachineFunction(MachineFunction &F) {
+  if (skipFunction(*F.getFunction()))
+    return false;
+
   TII = static_cast<const SystemZInstrInfo *>(F.getSubtarget().getInstrInfo());
   TRI = &TII->getRegisterInfo();
 
index 24165be..ff81e6b 100644 (file)
@@ -64,6 +64,9 @@ void SystemZLDCleanup::getAnalysisUsage(AnalysisUsage &AU) const {
 }
 
 bool SystemZLDCleanup::runOnMachineFunction(MachineFunction &F) {
+  if (skipFunction(*F.getFunction()))
+    return false;
+
   TII = static_cast<const SystemZInstrInfo *>(F.getSubtarget().getInstrInfo());
   MF = &F;
 
index 299ff71..41ef3b3 100644 (file)
@@ -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<SystemZSubtarget>();
   TII = ST.getInstrInfo();
   TRI = ST.getRegisterInfo();