Skip to content

Commit ebe741f

Browse files
authored
[DSE] Enable initializes improvement (#119116)
Tested with an internal search backend loadtest. With `-ftrivial-auto-var-init`, this work has a 0.2%-0.3% total QPS improvement. Note that, the metric is total QPS instead of cpu-time, even 1% improvement means a lot. - Add the "initializes" attr: #97373 - Apply the attr to DSE: #107282
1 parent 0be3348 commit ebe741f

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)