diff options
5 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp index ba7e98f17b8..e6996ab97a8 100644 --- a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp +++ b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp @@ -43,7 +43,7 @@ STATISTIC(NumFastStores, "Number of stores deleted"); 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. diff --git a/llvm/test/Transforms/DeadStoreElimination/ifthen.ll b/llvm/test/Transforms/DeadStoreElimination/ifthen.ll index 5fb1d3e7e51..21c87f89256 100644 --- a/llvm/test/Transforms/DeadStoreElimination/ifthen.ll +++ b/llvm/test/Transforms/DeadStoreElimination/ifthen.ll @@ -1,4 +1,4 @@ -; 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 diff --git a/llvm/test/Transforms/DeadStoreElimination/ifthenelse.ll b/llvm/test/Transforms/DeadStoreElimination/ifthenelse.ll index 5ebbff887f7..59ef17e37a5 100644 --- a/llvm/test/Transforms/DeadStoreElimination/ifthenelse.ll +++ b/llvm/test/Transforms/DeadStoreElimination/ifthenelse.ll @@ -1,4 +1,4 @@ -; 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 diff --git a/llvm/test/Transforms/DeadStoreElimination/ifthenelse2.ll b/llvm/test/Transforms/DeadStoreElimination/ifthenelse2.ll index 7c95cfd089b..7aab0300477 100644 --- a/llvm/test/Transforms/DeadStoreElimination/ifthenelse2.ll +++ b/llvm/test/Transforms/DeadStoreElimination/ifthenelse2.ll @@ -1,4 +1,4 @@ -; 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 diff --git a/llvm/test/Transforms/DeadStoreElimination/loop.ll b/llvm/test/Transforms/DeadStoreElimination/loop.ll index 80bd8529ad4..941e6fafaf3 100644 --- a/llvm/test/Transforms/DeadStoreElimination/loop.ll +++ b/llvm/test/Transforms/DeadStoreElimination/loop.ll @@ -1,4 +1,4 @@ -; 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 |