Kill a variable which is unused after cddcc4cf [nfc]
authorPhilip Reames <listmail@philipreames.com>
Thu, 3 Jun 2021 21:35:43 +0000 (14:35 -0700)
committerPhilip Reames <listmail@philipreames.com>
Thu, 3 Jun 2021 21:38:57 +0000 (14:38 -0700)
llvm/lib/Transforms/Utils/LoopUnroll.cpp

index 76036dc..fe0833a 100644 (file)
@@ -417,7 +417,6 @@ LoopUnrollResult llvm::UnrollLoop(Loop *L, UnrollLoopOptions ULO, LoopInfo *LI,
   // through another exit first.
   const unsigned ExactTripCount = ExitingBI ?
     SE->getSmallConstantTripCount(L,ExitingBI->getParent()) : 0;
-  const bool ExactUnroll = (ExactTripCount && ExactTripCount == ULO.Count);
 
   // Loops containing convergent instructions must have a count that divides
   // their TripMultiple.