Lines Matching refs:SelectInst
358 bool optimizeSelectInst(SelectInst *SI);
2829 SmallPtrSet<SelectInst *, 32> AllSelectNodes;
2860 if (auto *Select = dyn_cast<SelectInst>(PI)) in Simplify()
2890 void insertNewSelect(SelectInst *SI) { AllSelectNodes.insert(SI); } in insertNewSelect()
3228 if (SelectInst *Select = dyn_cast<SelectInst>(V)) { in FillPlaceholders()
3230 auto *CurrentSelect = cast<SelectInst>(Current); in FillPlaceholders()
3261 assert((isa<PHINode>(Original) || isa<SelectInst>(Original)) && in InsertPlaceholders()
3274 if (SelectInst *CurrentSelect = dyn_cast<SelectInst>(Current)) { in InsertPlaceholders()
3277 SelectInst *Select = SelectInst::Create( in InsertPlaceholders()
3478 return !(isa<SelectInst>(Inst) && OpIdx == 0); in shouldExtOperand()
4541 if (SelectInst *SI = dyn_cast<SelectInst>(V)) { in optimizeMemoryInst()
5673 SelectInst *SI) { in isFormingBranchFromSelectProfitable()
5716 SelectInst *SI, bool isTrue, in getTrueOrFalseValue()
5720 for (SelectInst *DefSI = SI; DefSI != nullptr && Selects.count(DefSI); in getTrueOrFalseValue()
5721 DefSI = dyn_cast<SelectInst>(V)) { in getTrueOrFalseValue()
5731 bool CodeGenPrepare::optimizeSelectInst(SelectInst *SI) { in optimizeSelectInst()
5737 SmallVector<SelectInst *, 2> ASI; in optimizeSelectInst()
5741 SelectInst *I = dyn_cast<SelectInst>(&*It); in optimizeSelectInst()
5749 SelectInst *LastSI = ASI.back(); in optimizeSelectInst()
5814 for (SelectInst *SI : ASI) { in optimizeSelectInst()
5875 SelectInst *SI = *It; in optimizeSelectInst()
6778 if (SelectInst *SI = dyn_cast<SelectInst>(I)) in optimizeInst()