[llvm] r282872 - CVP. Turn marking adds as no wrap on by default (was turned off by 279082)

Artur Pilipenko via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 30 09:20:08 PDT 2016


Author: apilipenko
Date: Fri Sep 30 11:20:08 2016
New Revision: 282872

URL: http://llvm.org/viewvc/llvm-project?rev=282872&view=rev
Log:
CVP. Turn marking adds as no wrap on by default (was turned off by 279082)

With 282650 in tree extra no wrap on adds doesn't cause regressions anymore. Reenable the optimzation.

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

Modified: llvm/trunk/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp?rev=282872&r1=282871&r2=282872&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp Fri Sep 30 11:20:08 2016
@@ -40,7 +40,7 @@ STATISTIC(NumDeadCases, "Number of switc
 STATISTIC(NumSDivs,     "Number of sdiv converted to udiv");
 STATISTIC(NumSRems,     "Number of srem converted to urem");
 
-static cl::opt<bool> DontProcessAdds("cvp-dont-process-adds", cl::init(true));
+static cl::opt<bool> DontProcessAdds("cvp-dont-process-adds", cl::init(false));
 
 namespace {
   class CorrelatedValuePropagation : public FunctionPass {




More information about the llvm-commits mailing list