summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp
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
commit9e6034444a67f6223e1c10581963723b46ae6154 (patch)
tree5bfcbf8c606d0e5308a0642cabb3df5e228ec42f /llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp
parent8b3666af1b2d9d67e34822f6b65514edf2036403 (diff)
downloadbcm5719-llvm-9e6034444a67f6223e1c10581963723b46ae6154.tar.gz
bcm5719-llvm-9e6034444a67f6223e1c10581963723b46ae6154.zip
Define a statistic for the number of slots that were filled with useful
instructions (instructions that are not NOP). llvm-svn: 141149
Diffstat (limited to 'llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp')
-rw-r--r--llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp b/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp
index dbcfc19d88a..6cc6a4d0de1 100644
--- a/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp
+++ b/llvm/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",
OpenPOWER on IntegriCloud