Home
last modified time | relevance | path

Searched refs:shouldChangeType (Results 1 – 7 of 7) sorted by relevance

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp304 shouldChangeType(CI.getSrcTy(), CI.getType()))) { in commonCastTransforms()
317 shouldChangeType(CI.getSrcTy(), CI.getType())) in commonCastTransforms()
540 shouldChangeType(Trunc.getSrcTy(), Trunc.getType())) && in narrowFunnelShift()
643 if (!isa<VectorType>(SrcTy) && !shouldChangeType(SrcTy, DestTy)) in narrowBinOp()
758 if ((DestTy->isVectorTy() || shouldChangeType(SrcTy, DestTy)) && in visitTrunc()
779 if (shouldChangeType(SrcTy, NewDestTy) && in visitTrunc()
903 (isa<VectorType>(SrcTy) || shouldChangeType(SrcTy, DestTy))) { in visitTrunc()
1244 if (shouldChangeType(SrcTy, DestTy) && in visitZExt()
1526 if (shouldChangeType(SrcTy, DestTy) && canEvaluateSExtd(Src, DestTy)) { in visitSExt()
H A DInstCombineInternal.h193 bool shouldChangeType(unsigned FromBitWidth, unsigned ToBitWidth) const;
194 bool shouldChangeType(Type *From, Type *To) const;
H A DInstCombineShifts.cpp1107 (!Ty->isIntegerTy() || shouldChangeType(Ty, X->getType()))) { in visitLShr()
1116 (!Ty->isIntegerTy() || shouldChangeType(Ty, X->getType()))) { in visitLShr()
1322 (Ty->isVectorTy() || shouldChangeType(Ty, X->getType()))) { in visitAShr()
H A DInstructionCombining.cpp214 bool InstCombinerImpl::shouldChangeType(unsigned FromWidth, in shouldChangeType() function in InstCombinerImpl
242 bool InstCombinerImpl::shouldChangeType(Type *From, Type *To) const { in shouldChangeType() function in InstCombinerImpl
250 return shouldChangeType(FromWidth, ToWidth); in shouldChangeType()
3041 shouldChangeType(Known.getBitWidth(), NewWidth)) { in visitSwitchInst()
H A DInstCombinePHI.cpp854 if (!shouldChangeType(PN.getType(), CastSrcTy)) in foldPHIArgOpIntoPHI()
H A DInstCombineSelect.cpp2212 if (!shouldChangeType(Ty->getScalarType()->getIntegerBitWidth(), NewBitWidth)) in matchSAddSubSat()
H A DInstCombineAndOrXor.cpp1762 if (!isa<VectorType>(Ty) && !shouldChangeType(Ty, X->getType())) in narrowMaskedBinOp()