Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp186 shouldChangeType(CI.getSrcTy(), CI.getType()))) { in commonCastTransforms()
205 shouldChangeType(CI.getSrcTy(), CI.getType())) in commonCastTransforms()
518 shouldChangeType(Trunc.getSrcTy(), Trunc.getType())) && in narrowFunnelShift()
626 if (!isa<VectorType>(SrcTy) && !shouldChangeType(SrcTy, DestTy)) in narrowBinOp()
766 if ((DestTy->isVectorTy() || shouldChangeType(SrcTy, DestTy)) && in visitTrunc()
787 if (shouldChangeType(SrcTy, NewDestTy) && in visitTrunc()
905 (isa<VectorType>(SrcTy) || shouldChangeType(SrcTy, DestTy))) { in visitTrunc()
1212 if (shouldChangeType(SrcTy, DestTy) && in visitZExt()
1501 if (shouldChangeType(SrcTy, DestTy) && canEvaluateSExtd(Src, DestTy)) { in visitSExt()
H A DInstCombineInternal.h248 bool shouldChangeType(unsigned FromBitWidth, unsigned ToBitWidth) const;
249 bool shouldChangeType(Type *From, Type *To) const;
H A DInstCombineShifts.cpp1437 (!Ty->isIntegerTy() || shouldChangeType(Ty, X->getType()))) { in visitLShr()
1454 if ((!Ty->isIntegerTy() || shouldChangeType(Ty, X->getType())) && in visitLShr()
1768 (Ty->isVectorTy() || shouldChangeType(Ty, X->getType()))) { in visitAShr()
H A DInstructionCombining.cpp263 bool InstCombinerImpl::shouldChangeType(unsigned FromWidth, in shouldChangeType() function in InstCombinerImpl
291 bool InstCombinerImpl::shouldChangeType(Type *From, Type *To) const { in shouldChangeType() function in InstCombinerImpl
299 return shouldChangeType(FromWidth, ToWidth); in shouldChangeType()
4237 shouldChangeType(Known.getBitWidth(), NewWidth)) { in visitSwitchInst()
H A DInstCombinePHI.cpp917 if (!shouldChangeType(PN.getType(), CastSrcTy)) in foldPHIArgOpIntoPHI()
H A DInstCombineCompares.cpp1457 if (shouldChangeType(Trunc->getType(), SrcTy)) { in foldICmpTruncConstant()
1491 if (!SrcTy->isVectorTy() && shouldChangeType(DstBits, SrcBits)) { in foldICmpTruncConstant()
2472 shouldChangeType(ShType->getScalarSizeInBits(), TypeBits - Amt)) { in foldICmpShlConstant()
3285 if (shouldChangeType(Ty, NewCmpTy)) { in foldICmpAddConstant()
H A DInstCombineCalls.cpp1205 if (!shouldChangeType(Ty->getScalarType()->getIntegerBitWidth(), NewBitWidth)) in matchSAddSubSat()
H A DInstCombineAndOrXor.cpp1985 if (!isa<VectorType>(Ty) && !shouldChangeType(Ty, X->getType())) in narrowMaskedBinOp()