diff options
author | Chad Rosier <mcrosier@codeaurora.org> | 2016-01-20 22:38:25 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@codeaurora.org> | 2016-01-20 22:38:25 +0000 |
commit | 6338d7c3904739e9da222cfe748c2fad1ae5af05 (patch) | |
tree | 73865bf3d42fa446440d01996a15746a579e2781 /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | 55a7ae5cc7f949b8318deb3ad19c249a207286eb (diff) | |
download | bcm5719-llvm-6338d7c3904739e9da222cfe748c2fad1ae5af05.tar.gz bcm5719-llvm-6338d7c3904739e9da222cfe748c2fad1ae5af05.zip |
MachineScheduler: Honor optnone functions in the pre-ra scheduler.
llvm-svn: 258363
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 c266b746e60..81651aadcfd 100644 --- a/llvm/lib/CodeGen/MachineScheduler.cpp +++ b/llvm/lib/CodeGen/MachineScheduler.cpp @@ -314,6 +314,9 @@ ScheduleDAGInstrs *PostMachineScheduler::createPostMachineScheduler() { /// design would be to split blocks at scheduling boundaries, but LLVM has a /// general bias against block splitting purely for implementation simplicity. bool MachineScheduler::runOnMachineFunction(MachineFunction &mf) { + if (skipOptnoneFunction(*mf.getFunction())) + return false; + if (EnableMachineSched.getNumOccurrences()) { if (!EnableMachineSched) return false; |