[llvm] 6ce7b2f - Fix "is not used" warning
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri May 14 20:59:07 PDT 2021
Author: Vitaly Buka
Date: 2021-05-14T20:58:58-07:00
New Revision: 6ce7b2f026129dd675b6e389ae83979ea8c45750
URL: https://github.com/llvm/llvm-project/commit/6ce7b2f026129dd675b6e389ae83979ea8c45750
DIFF: https://github.com/llvm/llvm-project/commit/6ce7b2f026129dd675b6e389ae83979ea8c45750.diff
LOG: Fix "is not used" warning
Added:
Modified:
llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp b/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
index b8603bc05530..c9d27de1231a 100644
--- a/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
@@ -737,12 +737,10 @@ static unsigned getFullUnrollBoostingFactor(const EstimatedUnrollCost &Cost,
// cheaply estimate cost for full unrolling when we don't want to symbolically
// evaluate all iterations.
class UnrollCostEstimator {
- Loop &TheLoop;
const unsigned LoopSize;
public:
- UnrollCostEstimator(Loop &L, unsigned LoopSize)
- : TheLoop(L), LoopSize(LoopSize) {}
+ UnrollCostEstimator(Loop &L, unsigned LoopSize) : LoopSize(LoopSize) {}
// Returns loop size estimation for unrolled loop, given the unrolling
// configuration specified by UP.
More information about the llvm-commits
mailing list