This option was originally added to work around a bug in LFTR.
The bug has long since been fixed.
STATISTIC(NumSaturating,
"Number of saturating arithmetics converted to normal arithmetics");
-static cl::opt<bool> DontAddNoWrapFlags("cvp-dont-add-nowrap-flags", cl::init(false));
-
namespace {
class CorrelatedValuePropagation : public FunctionPass {
static bool processBinOp(BinaryOperator *BinOp, LazyValueInfo *LVI) {
using OBO = OverflowingBinaryOperator;
- if (DontAddNoWrapFlags)
- return false;
-
if (BinOp->getType()->isVectorTy())
return false;
-; RUN: opt < %s -correlated-propagation -cvp-dont-add-nowrap-flags=false -S | FileCheck %s
+; RUN: opt < %s -correlated-propagation -S | FileCheck %s
; CHECK-LABEL: @test0(
define void @test0(i32 %a) {
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -correlated-propagation -cvp-dont-add-nowrap-flags=false -S | FileCheck %s
+; RUN: opt < %s -correlated-propagation -S | FileCheck %s
define i8 @test0(i8 %a) {
; CHECK-LABEL: @test0(
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -correlated-propagation -cvp-dont-add-nowrap-flags=false -S | FileCheck %s
+; RUN: opt < %s -correlated-propagation -S | FileCheck %s
define i8 @test0(i8 %a, i8 %b) {
; CHECK-LABEL: @test0(
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -correlated-propagation -cvp-dont-add-nowrap-flags=false -S | FileCheck %s
+; RUN: opt < %s -correlated-propagation -S | FileCheck %s
define void @test0(i32 %a) {
; CHECK-LABEL: @test0(