[llvm] [DeadStoreElimination] Optimize tautological assignments (PR #75744)
Shreyansh Chouhan via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 23 06:36:57 PST 2023
================
@@ -1926,6 +1926,43 @@ struct DSEState {
if (InitC && InitC == StoredConstant)
return MSSA.isLiveOnEntryDef(
MSSA.getSkipSelfWalker()->getClobberingMemoryAccess(Def, BatchAA));
+
----------------
BK1603 wrote:
https://godbolt.org/z/TMsbYhPe6
Looks like we already handle this for cases when the second operand is not a constant?
https://github.com/llvm/llvm-project/pull/75744
More information about the llvm-commits
mailing list