[llvm] [NFC][DSE] Fix comment in eliminateDeadStores (PR #75166)
Nabeel Omer via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 12 03:02:14 PST 2023
https://github.com/omern1 created https://github.com/llvm/llvm-project/pull/75166
Fix comment in DSE.
>From 7545d61c18f47a5d809be1c2d3e08077ba857f6f Mon Sep 17 00:00:00 2001
From: Nabeel Omer <Nabeel.Omer at sony.com>
Date: Tue, 12 Dec 2023 10:59:07 +0000
Subject: [PATCH] [NFC][DSE] Fix comment in eliminateDeadStores
---
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
index dd0a290252dae3..008dcc53fd44fc 100644
--- a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
@@ -2170,7 +2170,7 @@ static bool eliminateDeadStores(Function &F, AliasAnalysis &AA, MemorySSA &MSSA,
auto *DeadSI = dyn_cast<StoreInst>(DeadI);
auto *KillingSI = dyn_cast<StoreInst>(KillingI);
// We are re-using tryToMergePartialOverlappingStores, which requires
- // DeadSI to dominate DeadSI.
+ // DeadSI to dominate KillingSI.
// TODO: implement tryToMergeParialOverlappingStores using MemorySSA.
if (DeadSI && KillingSI && DT.dominates(DeadSI, KillingSI)) {
if (Constant *Merged = tryToMergePartialOverlappingStores(
More information about the llvm-commits
mailing list