Lines Matching refs:PoisonValue

354   if (isa<PoisonValue>(V))  in ConstantFoldCastInstruction()
355 return PoisonValue::get(DestTy); in ConstantFoldCastInstruction()
462 return PoisonValue::get(DestTy); in ConstantFoldCastInstruction()
547 if (isa<PoisonValue>(Cond)) { in ConstantFoldSelectInstruction()
548 V = PoisonValue::get(V1Element->getType()); in ConstantFoldSelectInstruction()
565 if (isa<PoisonValue>(Cond)) in ConstantFoldSelectInstruction()
566 return PoisonValue::get(V1->getType()); in ConstantFoldSelectInstruction()
575 if (isa<PoisonValue>(V1)) in ConstantFoldSelectInstruction()
577 if (isa<PoisonValue>(V2)) in ConstantFoldSelectInstruction()
583 if (isa<PoisonValue>(C)) in ConstantFoldSelectInstruction()
624 if (isa<PoisonValue>(Val) || isa<UndefValue>(Idx)) in ConstantFoldExtractElementInstruction()
625 return PoisonValue::get(ValVTy->getElementType()); in ConstantFoldExtractElementInstruction()
638 return PoisonValue::get(ValFVTy->getElementType()); in ConstantFoldExtractElementInstruction()
683 return PoisonValue::get(Val->getType()); in ConstantFoldInsertElementInstruction()
697 return PoisonValue::get(Val->getType()); in ConstantFoldInsertElementInstruction()
886 if (isa<PoisonValue>(C1) || isa<PoisonValue>(C2)) in ConstantFoldBinaryInstruction()
887 return PoisonValue::get(C1->getType()); in ConstantFoldBinaryInstruction()
928 return PoisonValue::get(C2->getType()); in ConstantFoldBinaryInstruction()
939 return PoisonValue::get(C2->getType()); in ConstantFoldBinaryInstruction()
949 return PoisonValue::get(C2->getType()); in ConstantFoldBinaryInstruction()
958 return PoisonValue::get(C2->getType()); in ConstantFoldBinaryInstruction()
968 return PoisonValue::get(C2->getType()); in ConstantFoldBinaryInstruction()
1021 return PoisonValue::get(CI2->getType()); // X / 0 == poison in ConstantFoldBinaryInstruction()
1028 return PoisonValue::get(CI2->getType()); // X % 0 == poison in ConstantFoldBinaryInstruction()
1142 return PoisonValue::get(CI1->getType()); // MIN_INT / -1 -> poison in ConstantFoldBinaryInstruction()
1150 return PoisonValue::get(CI1->getType()); // MIN_INT % -1 -> poison in ConstantFoldBinaryInstruction()
1161 return PoisonValue::get(C1->getType()); // too big shift is 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()
1215 return PoisonValue::get(VTy); in ConstantFoldBinaryInstruction()
1234 return PoisonValue::get(VTy); in ConstantFoldBinaryInstruction()
1717 if (isa<PoisonValue>(C1) || isa<PoisonValue>(C2)) in ConstantFoldCompareInstruction()
1718 return PoisonValue::get(ResultTy); in ConstantFoldCompareInstruction()
2206 if (isa<PoisonValue>(C)) in ConstantFoldGetElementPtr()
2207 return PoisonValue::get(GEPTy); in ConstantFoldGetElementPtr()
2211 return InBounds ? PoisonValue::get(GEPTy) : UndefValue::get(GEPTy); in ConstantFoldGetElementPtr()