diff options
author | Paul Robinson <paul_robinson@playstation.sony.com> | 2014-03-31 17:43:35 +0000 |
---|---|---|
committer | Paul Robinson <paul_robinson@playstation.sony.com> | 2014-03-31 17:43:35 +0000 |
commit | 7c99ec5b99f0a25838b9f27c0d3341b9e88d1531 (patch) | |
tree | 89a2e271061957826498db0796c94226b56a21e7 /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | c6a57ea4e9a9a7ece817c844fb1048e4a6b6816b (diff) | |
download | llvm-7c99ec5b99f0a25838b9f27c0d3341b9e88d1531.zip llvm-7c99ec5b99f0a25838b9f27c0d3341b9e88d1531.tar.gz llvm-7c99ec5b99f0a25838b9f27c0d3341b9e88d1531.tar.bz2 |
Disable each MachineFunctionPass for 'optnone' functions, unless that
pass normally runs at optimization level None, or is part of the
register allocation pipeline.
llvm-svn: 205228
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineScheduler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp index f99fc72..d90cd23 100644 --- a/llvm/lib/CodeGen/MachineScheduler.cpp +++ b/llvm/lib/CodeGen/MachineScheduler.cpp @@ -330,6 +330,9 @@ bool MachineScheduler::runOnMachineFunction(MachineFunction &mf) { } bool PostMachineScheduler::runOnMachineFunction(MachineFunction &mf) { + if (skipOptnoneFunction(*mf.getFunction())) + return false; + DEBUG(dbgs() << "Before post-MI-sched:\n"; mf.print(dbgs())); // Initialize the context of the pass. |