Lines Matching refs:UndefValue

195   if (isa<UndefValue>(V)) {  in ConstantFoldCastInstruction()
202 return UndefValue::get(DestTy); in ConstantFoldCastInstruction()
357 } else if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction()
358 V = isa<UndefValue>(V1Element) ? V1Element : V2Element; in ConstantFoldSelectInstruction()
374 if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction()
375 if (isa<UndefValue>(V1)) return V1; in ConstantFoldSelectInstruction()
407 if (isa<UndefValue>(V1) && NotPoison(V2)) return V2; in ConstantFoldSelectInstruction()
408 if (isa<UndefValue>(V2) && NotPoison(V1)) return V1; in ConstantFoldSelectInstruction()
419 if (isa<PoisonValue>(Val) || isa<UndefValue>(Idx)) in ConstantFoldExtractElementInstruction()
423 if (isa<UndefValue>(Val)) in ConstantFoldExtractElementInstruction()
424 return UndefValue::get(ValVTy->getElementType()); in ConstantFoldExtractElementInstruction()
480 if (isa<UndefValue>(Idx)) in ConstantFoldInsertElementInstruction()
557 Result.push_back(UndefValue::get(EltTy)); in ConstantFoldShuffleVectorInstruction()
562 InElt = UndefValue::get(EltTy); in ConstantFoldShuffleVectorInstruction()
626 (!C->getType()->isVectorTy() || IsScalableVector) && isa<UndefValue>(C); in ConstantFoldUnaryInstruction()
703 (isa<UndefValue>(C1) || isa<UndefValue>(C2)); in ConstantFoldBinaryInstruction()
707 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
714 return UndefValue::get(C1->getType()); in ConstantFoldBinaryInstruction()
716 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef & undef -> undef in ConstantFoldBinaryInstruction()
721 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
727 return UndefValue::get(C1->getType()); in ConstantFoldBinaryInstruction()
749 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef | undef -> undef in ConstantFoldBinaryInstruction()
754 if (isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
760 if (isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
767 if (isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
773 if (match(C1, m_NegZeroFP()) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
781 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
1229 if (isa<UndefValue>(C1) || isa<UndefValue>(C2)) { in ConstantFoldCompareInstruction()
1235 return UndefValue::get(ResultTy); in ConstantFoldCompareInstruction()
1554 if (isa<UndefValue>(C)) in ConstantFoldGetElementPtr()
1556 return InBounds ? PoisonValue::get(GEPTy) : UndefValue::get(GEPTy); in ConstantFoldGetElementPtr()
1565 return IdxC->isNullValue() || isa<UndefValue>(IdxC); in ConstantFoldGetElementPtr()