Lines Matching defs:Sel
175 if (auto *Sel = dyn_cast<SelectInst>(Src)) {
181 auto *Cmp = dyn_cast<CmpInst>(Sel->getCondition());
182 if (!Cmp || Cmp->getOperand(0)->getType() != Sel->getType() ||
190 if (Instruction *NV = FoldOpIntoSelect(CI, Sel)) {
191 replaceAllDbgUsesWith(*Sel, *NV, CI, DT);
728 if (SelectInst *Sel = dyn_cast<SelectInst>(Src))
729 if (matchSelectPattern(Sel, LHS, RHS).Flavor != SPF_UNKNOWN)
1832 Value *Sel = Builder.CreateSelect(Cond, X, NarrowY, "narrow.sel", Op);
1833 return replaceInstUsesWith(FPT, Sel);
1839 Value *Sel = Builder.CreateSelect(Cond, NarrowY, X, "narrow.sel", Op);
1840 return replaceInstUsesWith(FPT, Sel);
2465 auto *Sel = cast<Instruction>(BitCast.getOperand(0));
2471 return SelectInst::Create(Cond, X, CastedVal, "", nullptr, Sel);
2478 return SelectInst::Create(Cond, CastedVal, X, "", nullptr, Sel);