[unroll] Remove two dead variable assignments [nfc]
authorPhilip Reames <listmail@philipreames.com>
Tue, 23 Nov 2021 17:10:41 +0000 (09:10 -0800)
committerPhilip Reames <listmail@philipreames.com>
Tue, 23 Nov 2021 17:12:20 +0000 (09:12 -0800)
These variables are not out-params, and we immediately return after assigning them.  Thus, the assignments are dead and just confusing.

I believe these used to be out-params, but they're not any more.

llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp

index 0b8b47f..3d067d4 100644 (file)
@@ -982,8 +982,6 @@ bool llvm::computeUnrollCount(
   if (UnrollFactor) {
     UP.Count = *UnrollFactor;
     UseUpperBound = (FullUnrollMaxTripCount == FullUnrollTripCount);
-    TripCount = FullUnrollTripCount;
-    TripMultiple = UP.UpperBound ? 1 : TripMultiple;
     return ExplicitUnroll;
   } else {
     UP.Count = FullUnrollTripCount;