Lines Matching refs:PoisonValue

352   if (isa<PoisonValue>(V))  in ConstantFoldCastInstruction()
353 return PoisonValue::get(DestTy); in ConstantFoldCastInstruction()
454 return PoisonValue::get(DestTy); in ConstantFoldCastInstruction()
539 if (isa<PoisonValue>(Cond)) { in ConstantFoldSelectInstruction()
540 V = PoisonValue::get(V1Element->getType()); in ConstantFoldSelectInstruction()
557 if (isa<PoisonValue>(Cond)) in ConstantFoldSelectInstruction()
558 return PoisonValue::get(V1->getType()); in ConstantFoldSelectInstruction()
567 if (isa<PoisonValue>(V1)) in ConstantFoldSelectInstruction()
569 if (isa<PoisonValue>(V2)) in ConstantFoldSelectInstruction()
575 if (isa<PoisonValue>(C)) in ConstantFoldSelectInstruction()
616 if (isa<PoisonValue>(Val) || isa<UndefValue>(Idx)) in ConstantFoldExtractElementInstruction()
617 return PoisonValue::get(ValVTy->getElementType()); in ConstantFoldExtractElementInstruction()
630 return PoisonValue::get(ValFVTy->getElementType()); in ConstantFoldExtractElementInstruction()
678 return PoisonValue::get(Val->getType()); in ConstantFoldInsertElementInstruction()
697 return PoisonValue::get(Val->getType()); in ConstantFoldInsertElementInstruction()
890 if (isa<PoisonValue>(C1) || isa<PoisonValue>(C2)) in ConstantFoldBinaryInstruction()
891 return PoisonValue::get(C1->getType()); in ConstantFoldBinaryInstruction()
932 return PoisonValue::get(C2->getType()); in ConstantFoldBinaryInstruction()
943 return PoisonValue::get(C2->getType()); in ConstantFoldBinaryInstruction()
953 return PoisonValue::get(C2->getType()); in ConstantFoldBinaryInstruction()
962 return PoisonValue::get(C2->getType()); in ConstantFoldBinaryInstruction()
972 return PoisonValue::get(C2->getType()); in ConstantFoldBinaryInstruction()
1025 return PoisonValue::get(CI2->getType()); // X / 0 == poison in ConstantFoldBinaryInstruction()
1032 return PoisonValue::get(CI2->getType()); // X % 0 == poison in ConstantFoldBinaryInstruction()
1146 return PoisonValue::get(CI1->getType()); // MIN_INT / -1 -> poison in ConstantFoldBinaryInstruction()
1154 return PoisonValue::get(CI1->getType()); // MIN_INT % -1 -> poison in ConstantFoldBinaryInstruction()
1165 return PoisonValue::get(C1->getType()); // too big shift is poison in ConstantFoldBinaryInstruction()
1169 return PoisonValue::get(C1->getType()); // too big shift is poison in ConstantFoldBinaryInstruction()
1173 return PoisonValue::get(C1->getType()); // too big shift is poison in ConstantFoldBinaryInstruction()
1219 return PoisonValue::get(VTy); in ConstantFoldBinaryInstruction()
1242 return PoisonValue::get(VTy); in ConstantFoldBinaryInstruction()
1598 if (isa<PoisonValue>(C1) || isa<PoisonValue>(C2)) in ConstantFoldCompareInstruction()
1599 return PoisonValue::get(ResultTy); in ConstantFoldCompareInstruction()
2040 if (isa<PoisonValue>(C)) in ConstantFoldGetElementPtr()
2041 return PoisonValue::get(GEPTy); in ConstantFoldGetElementPtr()
2045 return InBounds ? PoisonValue::get(GEPTy) : UndefValue::get(GEPTy); in ConstantFoldGetElementPtr()