Lines Matching refs:UndefValue
355 if (isa<UndefValue>(V)) { in ConstantFoldCastInstruction()
362 return UndefValue::get(DestTy); in ConstantFoldCastInstruction()
543 } else if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction()
544 V = isa<UndefValue>(V1Element) ? V1Element : V2Element; in ConstantFoldSelectInstruction()
560 if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction()
561 if (isa<UndefValue>(V1)) return V1; in ConstantFoldSelectInstruction()
593 if (isa<UndefValue>(V1) && NotPoison(V2)) return V2; in ConstantFoldSelectInstruction()
594 if (isa<UndefValue>(V2) && NotPoison(V1)) return V1; in ConstantFoldSelectInstruction()
616 if (isa<PoisonValue>(Val) || isa<UndefValue>(Idx)) in ConstantFoldExtractElementInstruction()
620 if (isa<UndefValue>(Val)) in ConstantFoldExtractElementInstruction()
621 return UndefValue::get(ValVTy->getElementType()); in ConstantFoldExtractElementInstruction()
677 if (isa<UndefValue>(Idx)) in ConstantFoldInsertElementInstruction()
726 return UndefValue::get(VectorType::get(EltTy, MaskEltCount)); in ConstantFoldShuffleVectorInstruction()
754 Result.push_back(UndefValue::get(EltTy)); in ConstantFoldShuffleVectorInstruction()
759 InElt = UndefValue::get(EltTy); in ConstantFoldShuffleVectorInstruction()
823 (!C->getType()->isVectorTy() || IsScalableVector) && isa<UndefValue>(C); in ConstantFoldUnaryInstruction()
898 (isa<UndefValue>(C1) || isa<UndefValue>(C2)); in ConstantFoldBinaryInstruction()
902 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
909 return UndefValue::get(C1->getType()); in ConstantFoldBinaryInstruction()
911 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef & undef -> undef in ConstantFoldBinaryInstruction()
916 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
922 return UndefValue::get(C1->getType()); in ConstantFoldBinaryInstruction()
947 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef | undef -> undef in ConstantFoldBinaryInstruction()
952 if (isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
961 if (isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
971 if (isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
980 if (match(C1, m_NegZeroFP()) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
988 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
1601 if (isa<UndefValue>(C1) || isa<UndefValue>(C2)) { in ConstantFoldCompareInstruction()
1607 return UndefValue::get(ResultTy); in ConstantFoldCompareInstruction()
2043 if (isa<UndefValue>(C)) in ConstantFoldGetElementPtr()
2045 return InBounds ? PoisonValue::get(GEPTy) : UndefValue::get(GEPTy); in ConstantFoldGetElementPtr()
2055 return IdxC->isNullValue() || isa<UndefValue>(IdxC); in ConstantFoldGetElementPtr()
2067 if (!isa<UndefValue>(Idx) && !cast<Constant>(Idx)->isNullValue()) { in ConstantFoldGetElementPtr()