From a310ebcb97d2b281d16f9ccb393ed35f929323d1 Mon Sep 17 00:00:00 2001 From: Artur Pilipenko Date: Tue, 29 Nov 2016 16:24:57 +0000 Subject: [PATCH] [CVP] Remove cvp-dont-process-adds flag 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288154 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/CorrelatedValuePropagation.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp b/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp index fac8c156cb5..de62d9de7a8 100644 --- a/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp +++ b/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp @@ -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 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; -- 2.50.1