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
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:
static bool processAdd(BinaryOperator *AddOp, LazyValueInfo *LVI) {
typedef OverflowingBinaryOperator OBO;
- if (DontProcessAdds)
- return false;
-
if (AddOp->getType()->isVectorTy() || hasLocalDefs(AddOp))
return false;