[PATCH] D19562: Add optimization bisect opt-in calls for SystemZ passes

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 26 16:55:27 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL267636: Add optimization bisect opt-in calls for SystemZ passes (authored by akaylor).

Changed prior to commit:
  http://reviews.llvm.org/D19562?vs=55102&id=55130#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D19562

Files:
  llvm/trunk/lib/Target/SystemZ/SystemZElimCompare.cpp
  llvm/trunk/lib/Target/SystemZ/SystemZLDCleanup.cpp
  llvm/trunk/lib/Target/SystemZ/SystemZShortenInst.cpp

Index: llvm/trunk/lib/Target/SystemZ/SystemZShortenInst.cpp
===================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZShortenInst.cpp
+++ llvm/trunk/lib/Target/SystemZ/SystemZShortenInst.cpp
@@ -268,6 +268,9 @@
 }
 
 bool SystemZShortenInst::runOnMachineFunction(MachineFunction &F) {
+  if (skipFunction(*F.getFunction()))
+    return false;
+
   const SystemZSubtarget &ST = F.getSubtarget<SystemZSubtarget>();
   TII = ST.getInstrInfo();
   TRI = ST.getRegisterInfo();
Index: llvm/trunk/lib/Target/SystemZ/SystemZLDCleanup.cpp
===================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZLDCleanup.cpp
+++ llvm/trunk/lib/Target/SystemZ/SystemZLDCleanup.cpp
@@ -64,6 +64,9 @@
 }
 
 bool SystemZLDCleanup::runOnMachineFunction(MachineFunction &F) {
+  if (skipFunction(*F.getFunction()))
+    return false;
+
   TII = static_cast<const SystemZInstrInfo *>(F.getSubtarget().getInstrInfo());
   MF = &F;
 
Index: llvm/trunk/lib/Target/SystemZ/SystemZElimCompare.cpp
===================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZElimCompare.cpp
+++ llvm/trunk/lib/Target/SystemZ/SystemZElimCompare.cpp
@@ -500,6 +500,9 @@
 }
 
 bool SystemZElimCompare::runOnMachineFunction(MachineFunction &F) {
+  if (skipFunction(*F.getFunction()))
+    return false;
+
   TII = static_cast<const SystemZInstrInfo *>(F.getSubtarget().getInstrInfo());
   TRI = &TII->getRegisterInfo();
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19562.55130.patch
Type: text/x-patch
Size: 1517 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160426/1df890d0/attachment.bin>


More information about the llvm-commits mailing list