Lines Matching refs:SelectInst
440 bool optimizeSelectInst(SelectInst *SI);
1862 if (isa<SelectInst>(U) && cast<SelectInst>(U)->getCondition() == Cmp) in foldICmpWithDominatingICmp()
1904 if (auto *SI = dyn_cast<SelectInst>(U)) { in foldICmpWithDominatingICmp()
3602 SmallPtrSet<SelectInst *, 32> AllSelectNodes;
3632 if (auto *Select = dyn_cast<SelectInst>(PI)) in Simplify()
3660 void insertNewSelect(SelectInst *SI) { AllSelectNodes.insert(SI); } in insertNewSelect()
4014 if (SelectInst *Select = dyn_cast<SelectInst>(V)) { in FillPlaceholders()
4016 auto *CurrentSelect = cast<SelectInst>(Current); in FillPlaceholders()
4046 assert((isa<PHINode>(Original) || isa<SelectInst>(Original)) && in InsertPlaceholders()
4059 if (SelectInst *CurrentSelect = dyn_cast<SelectInst>(Current)) { in InsertPlaceholders()
4062 SelectInst *Select = SelectInst::Create( in InsertPlaceholders()
4330 return !(isa<SelectInst>(Inst) && OpIdx == 0); in shouldExtOperand()
5392 if (SelectInst *SI = dyn_cast<SelectInst>(V)) { in optimizeMemoryInst()
6870 SelectInst *SI) { in isFormingBranchFromSelectProfitable()
6913 getTrueOrFalseValue(SelectInst *SI, bool isTrue, in getTrueOrFalseValue()
6917 for (SelectInst *DefSI = SI; DefSI != nullptr && Selects.count(DefSI); in getTrueOrFalseValue()
6918 DefSI = dyn_cast<SelectInst>(V)) { in getTrueOrFalseValue()
6998 bool CodeGenPrepare::optimizeSelectInst(SelectInst *SI) { in optimizeSelectInst()
7007 SmallVector<SelectInst *, 2> ASI; in optimizeSelectInst()
7011 SelectInst *I = dyn_cast<SelectInst>(&*It); in optimizeSelectInst()
7019 SelectInst *LastSI = ASI.back(); in optimizeSelectInst()
7026 for (SelectInst *SI : ArrayRef(ASI).drop_front()) in optimizeSelectInst()
7080 for (SelectInst *SI : ASI) { in optimizeSelectInst()
7167 for (SelectInst *SI : llvm::reverse(ASI)) { in optimizeSelectInst()
8350 return optimizeSelectInst(cast<SelectInst>(I)); in optimizeInst()