[LoopInterchange] Remove unused RecurrenceDescriptor object. NFC
authorCraig Topper <craig.topper@sifive.com>
Sat, 4 Mar 2023 06:15:32 +0000 (22:15 -0800)
committerCraig Topper <craig.topper@sifive.com>
Sat, 4 Mar 2023 06:15:32 +0000 (22:15 -0800)
llvm/lib/Transforms/Scalar/LoopInterchange.cpp

index 14febae..66c498a 100644 (file)
@@ -736,7 +736,6 @@ bool LoopInterchangeLegality::findInductionAndReductions(
   if (!L->getLoopLatch() || !L->getLoopPredecessor())
     return false;
   for (PHINode &PHI : L->getHeader()->phis()) {
-    RecurrenceDescriptor RD;
     InductionDescriptor ID;
     if (InductionDescriptor::isInductionPHI(&PHI, L, SE, ID))
       Inductions.push_back(&PHI);