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/SystemZLDCleanup.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/Target/SystemZ/SystemZLDCleanup.cpp') 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; -- cgit v1.2.3