Lines Matching refs:SIUse

117   PHINode *SIUse;  member in __anon69497ae40111::SelectInstToUnfold
120 SelectInstToUnfold(SelectInst *SI, PHINode *SIUse) : SI(SI), SIUse(SIUse) {} in SelectInstToUnfold() argument
123 PHINode *getUse() { return SIUse; } in getUse()
125 explicit operator bool() const { return SI && SIUse; } in operator bool()
217 DomTreeUpdater *DTU, SelectInst *SI, PHINode *SIUse, SelectInst *SIToSink, in createBasicBlockAndSinkSelectInst() argument
229 NewSIsToUnfold->push_back(SelectInstToUnfold(SIToSink, SIUse)); in createBasicBlockAndSinkSelectInst()
244 PHINode *SIUse = SIToUnfold.getUse(); in unfold() local
246 BasicBlock *EndBlock = SIUse->getParent(); in unfold()
262 createBasicBlockAndSinkSelectInst(DTU, SI, SIUse, SIOp, EndBlock, in unfold()
267 createBasicBlockAndSinkSelectInst(DTU, SI, SIUse, SIOp, EndBlock, in unfold()
295 SIUse->removeIncomingValue(StartBlock, /* DeletePHIIfEmpty = */ false); in unfold()
296 SIUse->addIncoming(SI->getTrueValue(), TrueBlock); in unfold()
297 SIUse->addIncoming(SI->getFalseValue(), FalseBlock); in unfold()
301 if (&Phi != SIUse) { in unfold()
324 for (unsigned Idx = 0; Idx < SIUse->getNumIncomingValues(); ++Idx) { in unfold()
325 if (SIUse->getIncomingBlock(Idx) == StartBlock) in unfold()
326 SIUse->setIncomingValue(Idx, SIOp1); in unfold()
328 SIUse->addIncoming(SIOp2, NewBlock); in unfold()
333 if (Phi != SIUse) in unfold()
522 Instruction *SIUse = dyn_cast<Instruction>(SI->user_back()); in isValidSelectInst() local
524 if (!SIUse && !(isa<PHINode>(SIUse) || isa<SelectInst>(SIUse))) in isValidSelectInst()
535 if (isa<PHINode>(SIUse) && in isValidSelectInst()
536 SIBB->getSingleSuccessor() != dyn_cast<Instruction>(SIUse)->getParent()) in isValidSelectInst()