Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp306 shouldChangeType(CI.getSrcTy(), CI.getType()))) { in commonCastTransforms()
319 shouldChangeType(CI.getSrcTy(), CI.getType())) in commonCastTransforms()
542 shouldChangeType(Trunc.getSrcTy(), Trunc.getType())) && in narrowFunnelShift()
647 if (!isa<VectorType>(SrcTy) && !shouldChangeType(SrcTy, DestTy)) in narrowBinOp()
785 if ((DestTy->isVectorTy() || shouldChangeType(SrcTy, DestTy)) && in visitTrunc()
806 if (shouldChangeType(SrcTy, NewDestTy) && in visitTrunc()
910 (isa<VectorType>(SrcTy) || shouldChangeType(SrcTy, DestTy))) { in visitTrunc()
1253 if (shouldChangeType(SrcTy, DestTy) && in visitZExt()
1518 if (shouldChangeType(SrcTy, DestTy) && canEvaluateSExtd(Src, DestTy)) { in visitSExt()
H A DInstCombineInternal.h198 bool shouldChangeType(unsigned FromBitWidth, unsigned ToBitWidth) const;
199 bool shouldChangeType(Type *From, Type *To) const;
H A DInstCombineShifts.cpp1146 (!Ty->isIntegerTy() || shouldChangeType(Ty, X->getType()))) { in visitLShr()
1163 if ((!Ty->isIntegerTy() || shouldChangeType(Ty, X->getType())) && in visitLShr()
1425 (Ty->isVectorTy() || shouldChangeType(Ty, X->getType()))) { in visitAShr()
H A DInstructionCombining.cpp231 bool InstCombinerImpl::shouldChangeType(unsigned FromWidth, in shouldChangeType() function in InstCombinerImpl
259 bool InstCombinerImpl::shouldChangeType(Type *From, Type *To) const { in shouldChangeType() function in InstCombinerImpl
267 return shouldChangeType(FromWidth, ToWidth); in shouldChangeType()
3235 shouldChangeType(Known.getBitWidth(), NewWidth)) { in visitSwitchInst()
H A DInstCombinePHI.cpp886 if (!shouldChangeType(PN.getType(), CastSrcTy)) in foldPHIArgOpIntoPHI()
H A DInstCombineCalls.cpp898 if (!shouldChangeType(Ty->getScalarType()->getIntegerBitWidth(), NewBitWidth)) in matchSAddSubSat()
H A DInstCombineAndOrXor.cpp1565 if (!isa<VectorType>(Ty) && !shouldChangeType(Ty, X->getType())) in narrowMaskedBinOp()
H A DInstCombineCompares.cpp1556 if (!X->getType()->isVectorTy() && shouldChangeType(DstBits, SrcBits)) { in foldICmpTruncConstant()