Index: src/IceGlobalContext.h |
diff --git a/src/IceGlobalContext.h b/src/IceGlobalContext.h |
index 763a75b487ced3554f3bf53127106f792eabdf31..b398631bac0688daad20fa6400f7330e0c4b25cf 100644 |
--- a/src/IceGlobalContext.h |
+++ b/src/IceGlobalContext.h |
@@ -72,7 +72,8 @@ class GlobalContext { |
X("Regs Saved ", RegsSaved) \ |
X("Frame Bytes ", FrameByte) \ |
X("Spills ", NumSpills) \ |
- X("Fills ", NumFills) |
+ X("Fills ", NumFills) \ |
+ X("R/P Imms ", NumRPImms) |
//#define X(str, tag) |
public: |
@@ -263,6 +264,15 @@ public: |
Tls->StatsCumulative.update(CodeStats::CS_NumFills); |
} |
+ // Number of Randomized or Pooled Immediates |
+ void statsUpdateRPImms() { |
+ if (!getFlags().getDumpStats()) |
+ return; |
+ ThreadContext *Tls = ICE_TLS_GET_FIELD(TLS); |
+ Tls->StatsFunction.update(CodeStats::CS_NumRPImms); |
+ Tls->StatsCumulative.update(CodeStats::CS_NumRPImms); |
+ } |
+ |
// These are predefined TimerStackIdT values. |
enum TimerStackKind { TSK_Default = 0, TSK_Funcs, TSK_Num }; |