diff options
Diffstat (limited to 'lib/Transforms/Scalar/LICM.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LICM.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/Transforms/Scalar/LICM.cpp b/lib/Transforms/Scalar/LICM.cpp index 4783388f3d..40f341cdb4 100644 --- a/lib/Transforms/Scalar/LICM.cpp +++ b/lib/Transforms/Scalar/LICM.cpp @@ -49,18 +49,17 @@ #include <algorithm> using namespace llvm; +STATISTIC(NumSunk , "Number of instructions sunk out of loop"); +STATISTIC(NumHoisted , "Number of instructions hoisted out of loop"); +STATISTIC(NumMovedLoads, "Number of load insts hoisted or sunk"); +STATISTIC(NumMovedCalls, "Number of call insts hoisted or sunk"); +STATISTIC(NumPromoted , "Number of memory locations promoted to registers"); + namespace { cl::opt<bool> DisablePromotion("disable-licm-promotion", cl::Hidden, cl::desc("Disable memory promotion in LICM pass")); - Statistic NumSunk("licm", "Number of instructions sunk out of loop"); - Statistic NumHoisted("licm", "Number of instructions hoisted out of loop"); - Statistic NumMovedLoads("licm", "Number of load insts hoisted or sunk"); - Statistic NumMovedCalls("licm", "Number of call insts hoisted or sunk"); - Statistic NumPromoted("licm", - "Number of memory locations promoted to registers"); - struct LICM : public FunctionPass { virtual bool runOnFunction(Function &F); |