Lines Matching refs:UndefValue
135 if (isa<UndefValue>(V)) { in ConstantFoldCastInstruction()
142 return UndefValue::get(DestTy); in ConstantFoldCastInstruction()
289 } else if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction()
290 V = isa<UndefValue>(V1Element) ? V1Element : V2Element; in ConstantFoldSelectInstruction()
306 if (isa<UndefValue>(Cond)) { in ConstantFoldSelectInstruction()
307 if (isa<UndefValue>(V1)) return V1; in ConstantFoldSelectInstruction()
339 if (isa<UndefValue>(V1) && NotPoison(V2)) return V2; in ConstantFoldSelectInstruction()
340 if (isa<UndefValue>(V2) && NotPoison(V1)) return V1; in ConstantFoldSelectInstruction()
351 if (isa<PoisonValue>(Val) || isa<UndefValue>(Idx)) in ConstantFoldExtractElementInstruction()
355 if (isa<UndefValue>(Val)) in ConstantFoldExtractElementInstruction()
356 return UndefValue::get(ValVTy->getElementType()); in ConstantFoldExtractElementInstruction()
412 if (isa<UndefValue>(Idx)) in ConstantFoldInsertElementInstruction()
490 Result.push_back(UndefValue::get(EltTy)); in ConstantFoldShuffleVectorInstruction()
495 InElt = UndefValue::get(EltTy); in ConstantFoldShuffleVectorInstruction()
559 (!C->getType()->isVectorTy() || IsScalableVector) && isa<UndefValue>(C); in ConstantFoldUnaryInstruction()
636 (isa<UndefValue>(C1) || isa<UndefValue>(C2)); in ConstantFoldBinaryInstruction()
640 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
647 return UndefValue::get(C1->getType()); in ConstantFoldBinaryInstruction()
649 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef & undef -> undef in ConstantFoldBinaryInstruction()
654 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
660 return UndefValue::get(C1->getType()); in ConstantFoldBinaryInstruction()
682 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef | undef -> undef in ConstantFoldBinaryInstruction()
687 if (isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
693 if (isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
700 if (isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
706 if (match(C1, m_NegZeroFP()) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
714 if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) in ConstantFoldBinaryInstruction()
1145 if (isa<UndefValue>(C1) || isa<UndefValue>(C2)) { in ConstantFoldCompareInstruction()
1151 return UndefValue::get(ResultTy); in ConstantFoldCompareInstruction()
1350 if (isa<UndefValue>(C)) in ConstantFoldGetElementPtr()
1351 return UndefValue::get(GEPTy); in ConstantFoldGetElementPtr()
1360 return IdxC->isNullValue() || isa<UndefValue>(IdxC); in ConstantFoldGetElementPtr()