diff options
author | Florian Hahn <flo@fhahn.com> | 2019-12-06 14:55:07 +0000 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2020-02-10 10:28:43 +0000 |
commit | da52b9c118e47e3fd87e3500ac48cf76acea57c5 (patch) | |
tree | c51f10be5ee149603c595ba8632aa1ae6b18ddf1 /llvm/lib | |
parent | a248fa90a75fed9b6ac94e5638ee0e3bad2a51d7 (diff) | |
download | llvm-da52b9c118e47e3fd87e3500ac48cf76acea57c5.zip llvm-da52b9c118e47e3fd87e3500ac48cf76acea57c5.tar.gz llvm-da52b9c118e47e3fd87e3500ac48cf76acea57c5.tar.bz2 |
[DSE] Add tests for MemorySSA based DSE.
This copies the DSE tests into a MSSA subdirectory to test the MemorySSA
backed DSE implementation, without disturbing the original tests.
Differential Revision: https://reviews.llvm.org/D72145
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp index 2dd4296..f56a4c5f 100644 --- a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp +++ b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp @@ -87,6 +87,11 @@ EnablePartialStoreMerging("enable-dse-partial-store-merging", cl::init(true), cl::Hidden, cl::desc("Enable partial store merging in DSE")); +// Temporary dummy option for tests. +static cl::opt<bool> + EnableMemorySSA("enable-dse-memoryssa", cl::init(false), cl::Hidden, + cl::desc("Use the new MemorySSA-backed DSE.")); + //===----------------------------------------------------------------------===// // Helper functions //===----------------------------------------------------------------------===// |