Home | History | Annotate | Download | only in InstCombine

Lines Matching refs:dyn_cast

338   if (!Val || !(I = dyn_cast<Instruction>(Val)))
347 if ((C0 = dyn_cast<ConstantFP>(Opnd0)) && C0->isZero())
350 if ((C1 = dyn_cast<ConstantFP>(Opnd1)) && C1->isZero())
381 if (ConstantFP *C = dyn_cast<ConstantFP>(V0)) {
386 if (ConstantFP *C = dyn_cast<ConstantFP>(V1)) {
428 Instruction *I0 = dyn_cast<Instruction>(I->getOperand(0));
429 Instruction *I1 = dyn_cast<Instruction>(I->getOperand(1));
481 if (ConstantFP *CFP = dyn_cast<ConstantFP>(NewAddSub)) {
485 } else if (Instruction *II = dyn_cast<Instruction>(NewAddSub))
490 if (Instruction *II = dyn_cast<Instruction>(RI))
496 if (Instruction *II = dyn_cast<Instruction>(RI))
738 if (Instruction *I = dyn_cast<Instruction>(V))
746 if (Instruction *I = dyn_cast<Instruction>(NewV))
753 if (Instruction *I = dyn_cast<Instruction>(V))
760 if (Instruction *I = dyn_cast<Instruction>(V))
767 if (Instruction *I = dyn_cast<Instruction>(V))
1045 if (ConstantInt *CI = dyn_cast<ConstantInt>(RHS)) {
1057 if (ZExtInst *ZI = dyn_cast<ZExtInst>(LHS))
1146 if (Constant *CRHS = dyn_cast<Constant>(RHS)) {
1152 if (ConstantInt *CRHS = dyn_cast<ConstantInt>(RHS)) {
1177 if (SelectInst *SI = dyn_cast<SelectInst>(LHS))
1184 SelectInst *SI = dyn_cast<SelectInst>(LHS);
1187 SI = dyn_cast<SelectInst>(RHS);
1209 if (SExtInst *LHSConv = dyn_cast<SExtInst>(LHS)) {
1211 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) {
1225 if (SExtInst *RHSConv = dyn_cast<SExtInst>(RHS)) {
1311 if (SelectInst *SI = dyn_cast<SelectInst>(LHS))
1334 if (SIToFPInst *LHSConv = dyn_cast<SIToFPInst>(LHS)) {
1340 if (ConstantFP *CFP = dyn_cast<ConstantFP>(RHS)) {
1354 if (SIToFPInst *RHSConv = dyn_cast<SIToFPInst>(RHS)) {
1380 Z1 = dyn_cast<Constant>(A1); A = A2;
1381 Z2 = dyn_cast<Constant>(B2); B = B1;
1383 Z1 = dyn_cast<Constant>(B1); B = B2;
1384 Z2 = dyn_cast<Constant>(A2); A = A1;
1417 if (GEPOperator *LHSGEP = dyn_cast<GEPOperator>(LHS)) {
1422 } else if (GEPOperator *RHSGEP = dyn_cast<GEPOperator>(RHS)) {
1433 if (GEPOperator *RHSGEP = dyn_cast<GEPOperator>(RHS)) {
1438 } else if (GEPOperator *LHSGEP = dyn_cast<GEPOperator>(LHS)) {
1490 if (const auto *BO = dyn_cast<BinaryOperator>(Op1)) {
1510 if (Constant *C = dyn_cast<Constant>(Op0)) {
1517 if (SelectInst *SI = dyn_cast<SelectInst>(Op1))
1540 if (ConstantInt *C = dyn_cast<ConstantInt>(Op0)) {
1690 if (SelectInst *SI = dyn_cast<SelectInst>(Op1))
1701 if (FPTruncInst *FPTI = dyn_cast<FPTruncInst>(Op1)) {
1708 } else if (FPExtInst *FPEI = dyn_cast<FPExtInst>(Op1)) {