summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2016-04-27 19:39:32 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2016-04-27 19:39:32 +0000
commit289bd5f6843ba3e7a7a1831ce59d25aedae75aae (patch)
treea440987949b2482b67025b9a4b085380330c7c8f /llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
parentcac9b70692a20fad3f4fb8ec3acbb2d4e856f0d7 (diff)
downloadbcm5719-llvm-289bd5f6843ba3e7a7a1831ce59d25aedae75aae.tar.gz
bcm5719-llvm-289bd5f6843ba3e7a7a1831ce59d25aedae75aae.zip
Add optimization bisect opt-in calls for PowerPC passes
Differential Revision: http://reviews.llvm.org/D19554 llvm-svn: 267769
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCMIPeephole.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCMIPeephole.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp b/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
index fe339d70d7d..a57a83d7aa9 100644
--- a/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
+++ b/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
@@ -63,6 +63,8 @@ private:
public:
// Main entry point for this pass.
bool runOnMachineFunction(MachineFunction &MF) override {
+ if (skipFunction(*MF.getFunction()))
+ return false;
initialize(MF);
return simplifyCode();
}
OpenPOWER on IntegriCloud