reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
308 unsigned IncomingEdge = L->contains(PN->getIncomingBlock(0)); 312 auto *InitValueVal = dyn_cast<ConstantFP>(PN->getIncomingValue(IncomingEdge)); 320 auto *Incr = dyn_cast<BinaryOperator>(PN->getIncomingValue(BackEdge)); 327 if (IncValueVal == nullptr || Incr->getOperand(0) != PN || 455 IntegerType *Int32Ty = Type::getInt32Ty(PN->getContext()); 458 PHINode *NewPHI = PHINode::Create(Int32Ty, 2, PN->getName()+".int", PN); 458 PHINode *NewPHI = PHINode::Create(Int32Ty, 2, PN->getName()+".int", PN); 460 PN->getIncomingBlock(IncomingEdge)); 465 NewPHI->addIncoming(NewAdd, PN->getIncomingBlock(BackEdge)); 473 WeakTrackingVH WeakPH = PN; 493 Value *Conv = new SIToFPInst(NewPHI, PN->getType(), "indvar.conv", 494 &*PN->getParent()->getFirstInsertionPt()); 495 PN->replaceAllUsesWith(Conv); 496 RecursivelyDeleteTriviallyDeadInstructions(PN, TLI);