[llvm] Enable initializes improvement (PR #119116)
Haopeng Liu via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 7 21:41:47 PST 2024
https://github.com/haopliu created https://github.com/llvm/llvm-project/pull/119116
Tested with an internal benchmark and this improvement has an expected impact.
>From 2a97fc34b31f2e1f9409c5ff8950c5d630cf0b70 Mon Sep 17 00:00:00 2001
From: Haopeng Liu <haopliu at google.com>
Date: Sun, 8 Dec 2024 05:39:02 +0000
Subject: [PATCH] Enable initializes improvement
---
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
index 09e8301b772d96..778f83b7925691 100644
--- a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
@@ -164,9 +164,9 @@ static cl::opt<bool>
OptimizeMemorySSA("dse-optimize-memoryssa", cl::init(true), cl::Hidden,
cl::desc("Allow DSE to optimize memory accesses."));
-// TODO: turn on and remove this flag.
+// TODO: remove this flag.
static cl::opt<bool> EnableInitializesImprovement(
- "enable-dse-initializes-attr-improvement", cl::init(false), cl::Hidden,
+ "enable-dse-initializes-attr-improvement", cl::init(true), cl::Hidden,
cl::desc("Enable the initializes attr improvement in DSE"));
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list