diff options
| author | Akira Hatanaka <ahatanaka@mips.com> | 2012-08-24 20:40:15 +0000 |
|---|---|---|
| committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-08-24 20:40:15 +0000 |
| commit | 4a08a4a8b67fcbc2d35901757efc75bfbc52c1ec (patch) | |
| tree | 36e92092761d4b3041561997d30319ccdce01604 /llvm/lib/Target | |
| parent | 722398f1d42ff3ebd8ec2eb23151de6e95f89c8e (diff) | |
| download | bcm5719-llvm-4a08a4a8b67fcbc2d35901757efc75bfbc52c1ec.tar.gz bcm5719-llvm-4a08a4a8b67fcbc2d35901757efc75bfbc52c1ec.zip | |
Disable Mips' delay slot filler when optimization level is O0.
llvm-svn: 162589
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp b/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp index 8fe3ba61712..e3c8ed75cf9 100644 --- a/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp +++ b/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp @@ -115,7 +115,9 @@ runOnMachineBasicBlock(MachineBasicBlock &MBB) { InstrIter D; - if (!DisableDelaySlotFiller && findDelayInstr(MBB, I, D)) { + // Delay slot filling is disabled at -O0. + if (!DisableDelaySlotFiller && (TM.getOptLevel() != CodeGenOpt::None) && + findDelayInstr(MBB, I, D)) { MBB.splice(llvm::next(I), &MBB, D); ++UsefulSlots; } else |

