Lines Matching refs:UndefValue

357   if (isa<UndefValue>(V)) {  in ConstantFoldCastInstruction()
364 return UndefValue::get(DestTy); in ConstantFoldCastInstruction()
551 } else if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction()
552 V = isa<UndefValue>(V1Element) ? V1Element : V2Element; in ConstantFoldSelectInstruction()
568 if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction()
569 if (isa<UndefValue>(V1)) return V1; in ConstantFoldSelectInstruction()
601 if (isa<UndefValue>(V1) && NotPoison(V2)) return V2; in ConstantFoldSelectInstruction()
602 if (isa<UndefValue>(V2) && NotPoison(V1)) return V1; in ConstantFoldSelectInstruction()
624 if (isa<PoisonValue>(Val) || isa<UndefValue>(Idx)) in ConstantFoldExtractElementInstruction()
628 if (isa<UndefValue>(Val)) in ConstantFoldExtractElementInstruction()
629 return UndefValue::get(ValVTy->getElementType()); in ConstantFoldExtractElementInstruction()
682 if (isa<UndefValue>(Idx)) in ConstantFoldInsertElementInstruction()
726 return UndefValue::get(FixedVectorType::get(EltTy, MaskNumElts)); in ConstantFoldShuffleVectorInstruction()
750 Result.push_back(UndefValue::get(EltTy)); in ConstantFoldShuffleVectorInstruction()
755 InElt = UndefValue::get(EltTy); in ConstantFoldShuffleVectorInstruction()
819 (!C->getType()->isVectorTy() || IsScalableVector) && isa<UndefValue>(C); in ConstantFoldUnaryInstruction()
894 (isa<UndefValue>(C1) || isa<UndefValue>(C2)); in ConstantFoldBinaryInstruction()
898 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
905 return UndefValue::get(C1->getType()); in ConstantFoldBinaryInstruction()
907 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef & undef -> undef in ConstantFoldBinaryInstruction()
912 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
918 return UndefValue::get(C1->getType()); in ConstantFoldBinaryInstruction()
943 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef | undef -> undef in ConstantFoldBinaryInstruction()
948 if (isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
957 if (isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
967 if (isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
976 if (match(C1, m_NegZeroFP()) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
984 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
1720 if (isa<UndefValue>(C1) || isa<UndefValue>(C2)) { in ConstantFoldCompareInstruction()
1727 return UndefValue::get(ResultTy); in ConstantFoldCompareInstruction()
2209 if (isa<UndefValue>(C)) in ConstantFoldGetElementPtr()
2211 return InBounds ? PoisonValue::get(GEPTy) : UndefValue::get(GEPTy); in ConstantFoldGetElementPtr()
2214 if (Idxs.size() == 1 && (Idx0->isNullValue() || isa<UndefValue>(Idx0))) in ConstantFoldGetElementPtr()
2223 if (!isa<UndefValue>(Idxs[i]) && in ConstantFoldGetElementPtr()