Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp184 shouldChangeType(CI.getSrcTy(), CI.getType()))) { in commonCastTransforms()
197 shouldChangeType(CI.getSrcTy(), CI.getType())) in commonCastTransforms()
435 shouldChangeType(Trunc.getSrcTy(), Trunc.getType())) && in narrowFunnelShift()
542 if (!isa<VectorType>(SrcTy) && !shouldChangeType(SrcTy, DestTy)) in narrowBinOp()
682 if ((DestTy->isVectorTy() || shouldChangeType(SrcTy, DestTy)) && in visitTrunc()
703 if (shouldChangeType(SrcTy, NewDestTy) && in visitTrunc()
811 (isa<VectorType>(SrcTy) || shouldChangeType(SrcTy, DestTy))) { in visitTrunc()
1120 if (shouldChangeType(SrcTy, DestTy) && in visitZExt()
1412 if (shouldChangeType(SrcTy, DestTy) && canEvaluateSExtd(Src, DestTy)) { in visitSExt()
H A DInstCombineInternal.h242 bool shouldChangeType(unsigned FromBitWidth, unsigned ToBitWidth) const;
243 bool shouldChangeType(Type *From, Type *To) const;
H A DInstCombineShifts.cpp1331 (!Ty->isIntegerTy() || shouldChangeType(Ty, X->getType()))) { in visitLShr()
1348 if ((!Ty->isIntegerTy() || shouldChangeType(Ty, X->getType())) && in visitLShr()
1622 (Ty->isVectorTy() || shouldChangeType(Ty, X->getType()))) { in visitAShr()
H A DInstructionCombining.cpp221 bool InstCombinerImpl::shouldChangeType(unsigned FromWidth, in shouldChangeType() function in InstCombinerImpl
249 bool InstCombinerImpl::shouldChangeType(Type *From, Type *To) const { in shouldChangeType() function in InstCombinerImpl
257 return shouldChangeType(FromWidth, ToWidth); in shouldChangeType()
3377 shouldChangeType(Known.getBitWidth(), NewWidth)) { in visitSwitchInst()
H A DInstCombinePHI.cpp894 if (!shouldChangeType(PN.getType(), CastSrcTy)) in foldPHIArgOpIntoPHI()
H A DInstCombineCalls.cpp1160 if (!shouldChangeType(Ty->getScalarType()->getIntegerBitWidth(), NewBitWidth)) in matchSAddSubSat()
H A DInstCombineAndOrXor.cpp1849 if (!isa<VectorType>(Ty) && !shouldChangeType(Ty, X->getType())) in narrowMaskedBinOp()
H A DInstCombineCompares.cpp1444 if (!SrcTy->isVectorTy() && shouldChangeType(DstBits, SrcBits)) { in foldICmpTruncConstant()