[llvm] 5a44539 - [LV] Remove unused variable. NFC.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 22 08:44:14 PDT 2022
Author: Benjamin Kramer
Date: 2022-07-22T17:43:58+02:00
New Revision: 5a445395e49acc1a812b26ed9394014962508102
URL: https://github.com/llvm/llvm-project/commit/5a445395e49acc1a812b26ed9394014962508102
DIFF: https://github.com/llvm/llvm-project/commit/5a445395e49acc1a812b26ed9394014962508102.diff
LOG: [LV] Remove unused variable. NFC.
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 697ab53403c9..e86d56e83105 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -6779,7 +6779,6 @@ void LoopVectorizationCostModel::setCostBasedWideningDecision(ElementCount VF) {
// in each unrolled VF) and can thus handle scalable loads too. For
// scalable stores, we use a scatter if legal. If not, we have no way
// to lower (currently) and thus have to abort vectorization.
- InstructionCost Cost;
if (isa<StoreInst>(&I) && VF.isScalable()) {
if (isLegalGatherOrScatter(&I, VF))
setWideningDecision(&I, VF, CM_GatherScatter,
More information about the llvm-commits
mailing list