Lines Matching refs:UndefValue
357 if (TV && isa<UndefValue>(TV)) in ThreadBinOpOverSelect()
359 if (FV && isa<UndefValue>(FV)) in ThreadBinOpOverSelect()
721 return UndefValue::get(Op0->getType()); in SimplifySubInst()
920 return UndefValue::get(Ty); in simplifyDivRem()
929 if (Elt && (Elt->isNullValue() || isa<UndefValue>(Elt))) in simplifyDivRem()
930 return UndefValue::get(Ty); in simplifyDivRem()
1190 if (isa<UndefValue>(C)) in isUndefShift()
1231 return UndefValue::get(Op0->getType()); in SimplifyShift()
1249 return UndefValue::get(Op0->getType()); in SimplifyShift()
3327 if (LHS == RHS || isa<UndefValue>(RHS)) in SimplifyICmpInst()
3635 if (isa<UndefValue>(LHS) || isa<UndefValue>(RHS)) { in SimplifyFCmpInst()
4003 if (isa<UndefValue>(CondC)) in SimplifySelectInst()
4020 if (isa<UndefValue>(TrueVal)) // select ?, undef, X -> X in SimplifySelectInst()
4022 if (isa<UndefValue>(FalseVal)) // select ?, X, undef -> X in SimplifySelectInst()
4067 if (isa<UndefValue>(Ops[0])) in SimplifyGEPInst()
4068 return UndefValue::get(GEPTy); in SimplifyGEPInst()
4214 return UndefValue::get(Vec->getType()); in SimplifyInsertElementInst()
4218 if (isa<UndefValue>(Idx)) in SimplifyInsertElementInst()
4219 return UndefValue::get(Vec->getType()); in SimplifyInsertElementInst()
4266 if (isa<UndefValue>(Vec)) in SimplifyExtractElementInst()
4267 return UndefValue::get(Vec->getType()->getVectorElementType()); in SimplifyExtractElementInst()
4275 return UndefValue::get(Vec->getType()->getVectorElementType()); in SimplifyExtractElementInst()
4282 if (isa<UndefValue>(Idx)) in SimplifyExtractElementInst()
4283 return UndefValue::get(Vec->getType()->getVectorElementType()); in SimplifyExtractElementInst()
4302 if (isa<UndefValue>(Incoming)) { in SimplifyPHINode()
4315 return UndefValue::get(PN->getType()); in SimplifyPHINode()
4419 if (isa<UndefValue>(Mask)) in SimplifyShuffleVectorInst()
4420 return UndefValue::get(RetTy); in SimplifyShuffleVectorInst()
4443 Op0 = UndefValue::get(InVecTy); in SimplifyShuffleVectorInst()
4445 Op1 = UndefValue::get(InVecTy); in SimplifyShuffleVectorInst()
4464 if (isa<UndefValue>(Op1) && RetTy == InVecTy && in SimplifyShuffleVectorInst()
4509 if (isa<UndefValue>(Op0) || isa<UndefValue>(Op1)) in simplifyFPBinop()
4892 if (ConstMask->isNullValue() || isa<UndefValue>(ConstMask)) in maskIsAllZeroOrUndef()
4897 if (MaskElt->isNullValue() || isa<UndefValue>(MaskElt)) in maskIsAllZeroOrUndef()
4965 if (isa<UndefValue>(Op0) || isa<UndefValue>(Op1)) in simplifyBinaryIntrinsic()
4966 return UndefValue::get(ReturnType); in simplifyBinaryIntrinsic()
4971 if (isa<UndefValue>(Op0) || isa<UndefValue>(Op1)) in simplifyBinaryIntrinsic()
4972 return UndefValue::get(ReturnType); in simplifyBinaryIntrinsic()
5119 return UndefValue::get(F->getReturnType()); in simplifyIntrinsic()
5151 if (isa<UndefValue>(V) || isa<ConstantPointerNull>(V)) in SimplifyCall()
5152 return UndefValue::get(FTy->getReturnType()); in SimplifyCall()
5357 return Result == I ? UndefValue::get(I->getType()) : Result; in SimplifyInstruction()