[llvm] r295767 - Make default value for disable-licm-promotion in licm explicit.

Xin Tong via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 21 12:53:49 PST 2017


Author: trentxintong
Date: Tue Feb 21 14:53:48 2017
New Revision: 295767

URL: http://llvm.org/viewvc/llvm-project?rev=295767&view=rev
Log:
Make default value for disable-licm-promotion in licm explicit.

Modified:
    llvm/trunk/lib/Transforms/Scalar/LICM.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/LICM.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LICM.cpp?rev=295767&r1=295766&r2=295767&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LICM.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LICM.cpp Tue Feb 21 14:53:48 2017
@@ -77,8 +77,9 @@ STATISTIC(NumMovedLoads, "Number of load
 STATISTIC(NumMovedCalls, "Number of call insts hoisted or sunk");
 STATISTIC(NumPromoted, "Number of memory locations promoted to registers");
 
+/// Memory promotion is enabled by default.
 static cl::opt<bool>
-    DisablePromotion("disable-licm-promotion", cl::Hidden,
+    DisablePromotion("disable-licm-promotion", cl::Hidden, cl::init(false),
                      cl::desc("Disable memory promotion in LICM pass"));
 
 static cl::opt<uint32_t> MaxNumUsesTraversed(




More information about the llvm-commits mailing list