Lines Matching refs:PoisonValue
192 if (isa<PoisonValue>(V)) in ConstantFoldCastInstruction()
193 return PoisonValue::get(DestTy); in ConstantFoldCastInstruction()
276 return PoisonValue::get(DestTy); in ConstantFoldCastInstruction()
353 if (isa<PoisonValue>(Cond)) { in ConstantFoldSelectInstruction()
354 V = PoisonValue::get(V1Element->getType()); in ConstantFoldSelectInstruction()
371 if (isa<PoisonValue>(Cond)) in ConstantFoldSelectInstruction()
372 return PoisonValue::get(V1->getType()); in ConstantFoldSelectInstruction()
381 if (isa<PoisonValue>(V1)) in ConstantFoldSelectInstruction()
383 if (isa<PoisonValue>(V2)) in ConstantFoldSelectInstruction()
389 if (isa<PoisonValue>(C)) in ConstantFoldSelectInstruction()
419 if (isa<PoisonValue>(Val) || isa<UndefValue>(Idx)) in ConstantFoldExtractElementInstruction()
420 return PoisonValue::get(ValVTy->getElementType()); in ConstantFoldExtractElementInstruction()
433 return PoisonValue::get(ValFVTy->getElementType()); in ConstantFoldExtractElementInstruction()
481 return PoisonValue::get(Val->getType()); in ConstantFoldInsertElementInstruction()
500 return PoisonValue::get(Val->getType()); in ConstantFoldInsertElementInstruction()
529 return PoisonValue::get(VectorType::get(EltTy, MaskEltCount)); in ConstantFoldShuffleVectorInstruction()
695 if (isa<PoisonValue>(C1) || isa<PoisonValue>(C2)) in ConstantFoldBinaryInstruction()
696 return PoisonValue::get(C1->getType()); in ConstantFoldBinaryInstruction()
737 return PoisonValue::get(C2->getType()); in ConstantFoldBinaryInstruction()
745 return PoisonValue::get(C2->getType()); in ConstantFoldBinaryInstruction()
755 return PoisonValue::get(C2->getType()); in ConstantFoldBinaryInstruction()
761 return PoisonValue::get(C2->getType()); in ConstantFoldBinaryInstruction()
768 return PoisonValue::get(C2->getType()); in ConstantFoldBinaryInstruction()
809 return PoisonValue::get(CI2->getType()); // X / 0 == poison in ConstantFoldBinaryInstruction()
816 return PoisonValue::get(CI2->getType()); // X % 0 == poison in ConstantFoldBinaryInstruction()
909 return PoisonValue::get(CI1->getType()); // MIN_INT / -1 -> poison in ConstantFoldBinaryInstruction()
917 return PoisonValue::get(CI1->getType()); // MIN_INT % -1 -> poison in ConstantFoldBinaryInstruction()
928 return PoisonValue::get(C1->getType()); // too big shift is poison in ConstantFoldBinaryInstruction()
932 return PoisonValue::get(C1->getType()); // too big shift is poison in ConstantFoldBinaryInstruction()
936 return PoisonValue::get(C1->getType()); // too big shift is poison in ConstantFoldBinaryInstruction()
982 return PoisonValue::get(VTy); in ConstantFoldBinaryInstruction()
1005 return PoisonValue::get(VTy); in ConstantFoldBinaryInstruction()
1226 if (isa<PoisonValue>(C1) || isa<PoisonValue>(C2)) in ConstantFoldCompareInstruction()
1227 return PoisonValue::get(ResultTy); in ConstantFoldCompareInstruction()
1551 if (isa<PoisonValue>(C)) in ConstantFoldGetElementPtr()
1552 return PoisonValue::get(GEPTy); in ConstantFoldGetElementPtr()
1556 return InBounds ? PoisonValue::get(GEPTy) : UndefValue::get(GEPTy); in ConstantFoldGetElementPtr()