Skip to content

Commit 13dae34

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)