[CVP] Remove cvp-dont-process-adds flag
authorArtur Pilipenko <apilipenko@azulsystems.com>
Tue, 29 Nov 2016 16:24:57 +0000 (16:24 +0000)
committerArtur Pilipenko <apilipenko@azulsystems.com>
Tue, 29 Nov 2016 16:24:57 +0000 (16:24 +0000)
The flag was introduced because the optimization controlled by the flag initially caused regressions. All the regressions were fixed some time ago and the flag has been false for quite a while.

llvm-svn: 288154

llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp

index fac8c15..de62d9d 100644 (file)
@@ -41,8 +41,6 @@ STATISTIC(NumSDivs,     "Number of sdiv converted to udiv");
 STATISTIC(NumAShrs,     "Number of ashr converted to lshr");
 STATISTIC(NumSRems,     "Number of srem converted to urem");
 
-static cl::opt<bool> DontProcessAdds("cvp-dont-process-adds", cl::init(false));
-
 namespace {
   class CorrelatedValuePropagation : public FunctionPass {
   public:
@@ -407,9 +405,6 @@ static bool processAShr(BinaryOperator *SDI, LazyValueInfo *LVI) {
 static bool processAdd(BinaryOperator *AddOp, LazyValueInfo *LVI) {
   typedef OverflowingBinaryOperator OBO;
 
-  if (DontProcessAdds)
-    return false;
-
   if (AddOp->getType()->isVectorTy() || hasLocalDefs(AddOp))
     return false;