STATISTIC(NumFastOther , "Number of other instrs removed");
STATISTIC(NumNonLocalStores, "Number of non-local stores deleted");
-static cl::opt<bool> EnableNonLocalDSE("enable-nonlocal-dse", cl::init(true));
+static cl::opt<bool> EnableNonLocalDSE("enable-nonlocal-dse", cl::init(false));
/// MaxNonLocalAttempts is an arbitrary threshold that provides
/// an early opportunitiy for bail out to control compile time.
-; RUN: opt < %s -basicaa -dse -S | FileCheck %s
+; RUN: opt < %s -basicaa -dse -enable-nonlocal-dse -S | FileCheck %s
; The store and add in if.then block should be removed by non-local DSE.
; CHECK-NOT: %stval = add
-; RUN: opt < %s -basicaa -dse -S | FileCheck %s
+; RUN: opt < %s -basicaa -dse -enable-nonlocal-dse -S | FileCheck %s
; The add and store in entry block should be removed by non-local DSE.
; CHECK-NOT: %stval = add
-; RUN: opt < %s -basicaa -dse -S | FileCheck %s
+; RUN: opt < %s -basicaa -dse -enable-nonlocal-dse -S | FileCheck %s
; The add and store in entry block should be removed by non-local DSE.
; CHECK-NOT: %stval = add
-; RUN: opt < %s -basicaa -dse -S | FileCheck %s
+; RUN: opt < %s -basicaa -dse -enable-nonlocal-dse -S | FileCheck %s
; The store in for.body block should be removed by non-local DSE.
; CHECK-NOT: store i32 0, i32* %arrayidx