summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-08-22 02:51:28 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-08-22 02:51:28 +0000
commit9d957842e1f6391c23ba70a5dc7d4dde76cb5ff9 (patch)
treeed3e117bf04bbde26ed49200be9108e2ea2d8591 /llvm/lib
parent98b771ecc2b18972b3d653451268a0703d09b49d (diff)
downloadbcm5719-llvm-9d957842e1f6391c23ba70a5dc7d4dde76cb5ff9.tar.gz
bcm5719-llvm-9d957842e1f6391c23ba70a5dc7d4dde76cb5ff9.zip
Add option disable-mips-delay-filler. Turn on mips' delay slot filler by
default. Patch by Carl Norum. llvm-svn: 162339
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp b/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp
index 2bba8a38024..8fe3ba61712 100644
--- a/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp
+++ b/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp
@@ -30,10 +30,11 @@ STATISTIC(FilledSlots, "Number of delay slots filled");
STATISTIC(UsefulSlots, "Number of delay slots filled with instructions that"
" are not NOP.");
-static cl::opt<bool> EnableDelaySlotFiller(
- "enable-mips-delay-filler",
+static cl::opt<bool> DisableDelaySlotFiller(
+ "disable-mips-delay-filler",
cl::init(false),
- cl::desc("Fill the Mips delay slots useful instructions."),
+ cl::desc("Disable the delay slot filler, which attempts to fill the Mips"
+ "delay slots with useful instructions."),
cl::Hidden);
// This option can be used to silence complaints by machine verifier passes.
@@ -114,7 +115,7 @@ runOnMachineBasicBlock(MachineBasicBlock &MBB) {
InstrIter D;
- if (EnableDelaySlotFiller && findDelayInstr(MBB, I, D)) {
+ if (!DisableDelaySlotFiller && findDelayInstr(MBB, I, D)) {
MBB.splice(llvm::next(I), &MBB, D);
++UsefulSlots;
} else
OpenPOWER on IntegriCloud