Skip to content

Commit 65e9bcf

Browse files
authored
[DSE] Enable the initializes improvement in DSE (#124058)
(Retry) enable the initializes improvement in DSE. Initially enabled in llvm/llvm-project#119116. Fix the aliasing issue through global variables in llvm/llvm-project#120044. The compile-time comparison of this enabling (no meaningful diff): https://llvm-compile-time-tracker.com/compare.php?from=2f9f12d0ffaa36a5a23f26dda259f01364c318f1&to=33dc817b81f7898c87b052d1ddfd3d6e6f5b5dbd&stat=instructions%3Au
1 parent a764a10 commit 65e9bcf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ static cl::opt<bool>
164164
OptimizeMemorySSA("dse-optimize-memoryssa", cl::init(true), cl::Hidden,
165165
cl::desc("Allow DSE to optimize memory accesses."));
166166

167-
// TODO: turn on and remove this flag.
167+
// TODO: remove this flag.
168168
static cl::opt<bool> EnableInitializesImprovement(
169-
"enable-dse-initializes-attr-improvement", cl::init(false), cl::Hidden,
169+
"enable-dse-initializes-attr-improvement", cl::init(true), cl::Hidden,
170170
cl::desc("Enable the initializes attr improvement in DSE"));
171171

172172
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)