From c0cbe6453ac1918e405de10f756f6f7f99668bbd Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Wed, 19 Aug 2020 19:32:49 +0100 Subject: [PATCH] [DSE] Remove dead argument from removePartiallyOverlappedStores (NFC). The argument is unused and can be removed. --- llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp index 7c30292..a29b635 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; -- 2.7.4