Skip to content

Commit 6ce7b2f

Browse files
committed
Fix "is not used" warning
1 parent 49cdd62 commit 6ce7b2f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -737,12 +737,10 @@ static unsigned getFullUnrollBoostingFactor(const EstimatedUnrollCost &Cost,
737737
// cheaply estimate cost for full unrolling when we don't want to symbolically
738738
// evaluate all iterations.
739739
class UnrollCostEstimator {
740-
Loop &TheLoop;
741740
const unsigned LoopSize;
742741

743742
public:
744-
UnrollCostEstimator(Loop &L, unsigned LoopSize)
745-
: TheLoop(L), LoopSize(LoopSize) {}
743+
UnrollCostEstimator(Loop &L, unsigned LoopSize) : LoopSize(LoopSize) {}
746744

747745
// Returns loop size estimation for unrolled loop, given the unrolling
748746
// configuration specified by UP.

0 commit comments

Comments
 (0)