[llvm] c0cbe64 - [DSE] Remove dead argument from removePartiallyOverlappedStores (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 19 11:34:28 PDT 2020
Author: Florian Hahn
Date: 2020-08-19T19:33:52+01:00
New Revision: c0cbe6453ac1918e405de10f756f6f7f99668bbd
URL: https://github.com/llvm/llvm-project/commit/c0cbe6453ac1918e405de10f756f6f7f99668bbd
DIFF: https://github.com/llvm/llvm-project/commit/c0cbe6453ac1918e405de10f756f6f7f99668bbd.diff
LOG: [DSE] Remove dead argument from removePartiallyOverlappedStores (NFC).
The argument is unused and can be removed.
Added:
Modified:
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
index 7c30292e4c30..a29b6353f17f 100644
--- a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
@@ -1074,8 +1074,7 @@ static bool tryToShortenBegin(Instruction *EarlierWrite,
return false;
}
-static bool removePartiallyOverlappedStores(AliasAnalysis *AA,
- const DataLayout &DL,
+static bool removePartiallyOverlappedStores(const DataLayout &DL,
InstOverlapIntervalsTy &IOL) {
bool Changed = false;
for (auto OI : IOL) {
@@ -1388,7 +1387,7 @@ static bool eliminateDeadStores(BasicBlock &BB, AliasAnalysis *AA,
}
if (EnablePartialOverwriteTracking)
- MadeChange |= removePartiallyOverlappedStores(AA, DL, IOL);
+ MadeChange |= removePartiallyOverlappedStores(DL, IOL);
// If this block ends in a return, unwind, or unreachable, all allocas are
// dead at its end, which means stores to them are also dead.
@@ -2310,7 +2309,7 @@ bool eliminateDeadStoresMemorySSA(Function &F, AliasAnalysis &AA,
if (EnablePartialOverwriteTracking)
for (auto &KV : State.IOLs)
- MadeChange |= removePartiallyOverlappedStores(&AA, DL, KV.second);
+ MadeChange |= removePartiallyOverlappedStores(DL, KV.second);
MadeChange |= State.eliminateDeadWritesAtEndOfFunction();
return MadeChange;
More information about the llvm-commits
mailing list