Skip to content

Commit a35c0c8

Browse files
committed
[IVDesc] Tweak dbg msg, revert unrelated change
1 parent ecdf975 commit a35c0c8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Analysis/IVDescriptors.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,8 +1401,8 @@ InductionDescriptor::InductionDescriptor(Value *Start, InductionKind K,
14011401
}
14021402

14031403
ConstantInt *InductionDescriptor::getConstIntStepValue() const {
1404-
if (auto *C = dyn_cast<SCEVConstant>(Step))
1405-
return dyn_cast<ConstantInt>(C->getValue());
1404+
if (isa<SCEVConstant>(Step))
1405+
return dyn_cast<ConstantInt>(cast<SCEVConstant>(Step)->getValue());
14061406
return nullptr;
14071407
}
14081408

@@ -1626,7 +1626,8 @@ bool InductionDescriptor::isInductionPHI(
16261626
// know how to handled uniform PHIs.
16271627
if (!match(PhiScev, m_scev_AffineAddRec(m_SCEV(), m_SCEV(Step),
16281628
m_SpecificLoop(TheLoop)))) {
1629-
LLVM_DEBUG(dbgs() << "LV: PHI is not a poly recurrence.\n");
1629+
LLVM_DEBUG(
1630+
dbgs() << "LV: PHI is not a poly recurrence for requested loop.\n");
16301631
return false;
16311632
}
16321633

0 commit comments

Comments
 (0)