[llvm] dc6238e - [Scalar] Remove an unused local varable (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 29 10:03:21 PST 2023
Author: Kazu Hirata
Date: 2023-01-29T10:03:15-08:00
New Revision: dc6238e035cf697cf255d83e027645ac7c1b5f22
URL: https://github.com/llvm/llvm-project/commit/dc6238e035cf697cf255d83e027645ac7c1b5f22
DIFF: https://github.com/llvm/llvm-project/commit/dc6238e035cf697cf255d83e027645ac7c1b5f22.diff
LOG: [Scalar] Remove an unused local varable (NFC)
The last uses of CRs were removed on Jan 17, 2023 in commit
61bb549cfd43fe4753fc78075b626ae18106fbeb.
Added:
Modified:
llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp b/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
index 90b4b521e7de2..856a8fd28d902 100644
--- a/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
+++ b/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
@@ -717,7 +717,6 @@ static bool narrowSDivOrSRem(BinaryOperator *Instr, const ConstantRange &LCR,
// What is the smallest bit width that can accommodate the entire value ranges
// of both of the operands?
- std::array<std::optional<ConstantRange>, 2> CRs;
unsigned MinSignedBits =
std::max(LCR.getMinSignedBits(), RCR.getMinSignedBits());
More information about the llvm-commits
mailing list