Lines Matching refs:PoisonValue

132   if (isa<PoisonValue>(V))  in ConstantFoldCastInstruction()
133 return PoisonValue::get(DestTy); in ConstantFoldCastInstruction()
216 return PoisonValue::get(DestTy); in ConstantFoldCastInstruction()
285 if (isa<PoisonValue>(Cond)) { in ConstantFoldSelectInstruction()
286 V = PoisonValue::get(V1Element->getType()); in ConstantFoldSelectInstruction()
303 if (isa<PoisonValue>(Cond)) in ConstantFoldSelectInstruction()
304 return PoisonValue::get(V1->getType()); in ConstantFoldSelectInstruction()
313 if (isa<PoisonValue>(V1)) in ConstantFoldSelectInstruction()
315 if (isa<PoisonValue>(V2)) in ConstantFoldSelectInstruction()
321 if (isa<PoisonValue>(C)) in ConstantFoldSelectInstruction()
351 if (isa<PoisonValue>(Val) || isa<UndefValue>(Idx)) in ConstantFoldExtractElementInstruction()
352 return PoisonValue::get(ValVTy->getElementType()); in ConstantFoldExtractElementInstruction()
365 return PoisonValue::get(ValFVTy->getElementType()); in ConstantFoldExtractElementInstruction()
413 return PoisonValue::get(Val->getType()); in ConstantFoldInsertElementInstruction()
432 return PoisonValue::get(Val->getType()); in ConstantFoldInsertElementInstruction()
461 return PoisonValue::get(VectorType::get(EltTy, MaskEltCount)); in ConstantFoldShuffleVectorInstruction()
628 if (isa<PoisonValue>(C1) || isa<PoisonValue>(C2)) in ConstantFoldBinaryInstruction()
629 return PoisonValue::get(C1->getType()); in ConstantFoldBinaryInstruction()
670 return PoisonValue::get(C2->getType()); in ConstantFoldBinaryInstruction()
678 return PoisonValue::get(C2->getType()); in ConstantFoldBinaryInstruction()
688 return PoisonValue::get(C2->getType()); in ConstantFoldBinaryInstruction()
694 return PoisonValue::get(C2->getType()); in ConstantFoldBinaryInstruction()
701 return PoisonValue::get(C2->getType()); in ConstantFoldBinaryInstruction()
742 return PoisonValue::get(CI2->getType()); // X / 0 == poison in ConstantFoldBinaryInstruction()
749 return PoisonValue::get(CI2->getType()); // X % 0 == poison in ConstantFoldBinaryInstruction()
826 return PoisonValue::get(CI1->getType()); // MIN_INT / -1 -> poison in ConstantFoldBinaryInstruction()
834 return PoisonValue::get(CI1->getType()); // MIN_INT % -1 -> poison in ConstantFoldBinaryInstruction()
845 return PoisonValue::get(C1->getType()); // too big shift is poison in ConstantFoldBinaryInstruction()
849 return PoisonValue::get(C1->getType()); // too big shift is poison in ConstantFoldBinaryInstruction()
853 return PoisonValue::get(C1->getType()); // too big shift is poison in ConstantFoldBinaryInstruction()
899 return PoisonValue::get(VTy); in ConstantFoldBinaryInstruction()
922 return PoisonValue::get(VTy); in ConstantFoldBinaryInstruction()
1142 if (isa<PoisonValue>(C1) || isa<PoisonValue>(C2)) in ConstantFoldCompareInstruction()
1143 return PoisonValue::get(ResultTy); in ConstantFoldCompareInstruction()
1347 if (isa<PoisonValue>(C)) in ConstantFoldGetElementPtr()
1348 return PoisonValue::get(GEPTy); in ConstantFoldGetElementPtr()