aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2011-10-05 01:19:13 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2011-10-05 01:19:13 +0000
commit98f4d4d2db66375bedb461a9f6f9092a3c6703b2 (patch)
treefe753e2ccfa90bf1742704778170a2477834ad6d
parentf2f70c2493b9880333b9c052fe7cb56331198599 (diff)
Define a statistic for the number of slots that were filled with useful
instructions (instructions that are not NOP). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141149 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/Mips/MipsDelaySlotFiller.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsDelaySlotFiller.cpp b/lib/Target/Mips/MipsDelaySlotFiller.cpp
index dbcfc19d88..6cc6a4d0de 100644
--- a/lib/Target/Mips/MipsDelaySlotFiller.cpp
+++ b/lib/Target/Mips/MipsDelaySlotFiller.cpp
@@ -27,6 +27,8 @@
using namespace llvm;
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",