We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c66deb commit fdd5843Copy full SHA for fdd5843
llvm/lib/Transforms/Scalar/LoopFlatten.cpp
@@ -411,7 +411,7 @@ static bool findLoopComponents(
411
// pre-header and one from the latch. The incoming latch value is the
412
// increment variable.
413
Increment =
414
- dyn_cast<BinaryOperator>(InductionPHI->getIncomingValueForBlock(Latch));
+ cast<BinaryOperator>(InductionPHI->getIncomingValueForBlock(Latch));
415
if (Increment->hasNUsesOrMore(3)) {
416
LLVM_DEBUG(dbgs() << "Could not find valid increment\n");
417
return false;
0 commit comments