Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp319 shouldChangeType(CI.getSrcTy(), CI.getType()))) { in commonCastTransforms()
332 shouldChangeType(CI.getSrcTy(), CI.getType())) in commonCastTransforms()
571 shouldChangeType(Trunc.getSrcTy(), Trunc.getType())) && in narrowFunnelShift()
676 if (!isa<VectorType>(SrcTy) && !shouldChangeType(SrcTy, DestTy)) in narrowBinOp()
814 if ((DestTy->isVectorTy() || shouldChangeType(SrcTy, DestTy)) && in visitTrunc()
835 if (shouldChangeType(SrcTy, NewDestTy) && in visitTrunc()
939 (isa<VectorType>(SrcTy) || shouldChangeType(SrcTy, DestTy))) { in visitTrunc()
1241 if (shouldChangeType(SrcTy, DestTy) && in visitZExt()
1514 if (shouldChangeType(SrcTy, DestTy) && canEvaluateSExtd(Src, DestTy)) { in visitSExt()
H A DInstCombineInternal.h200 bool shouldChangeType(unsigned FromBitWidth, unsigned ToBitWidth) const;
201 bool shouldChangeType(Type *From, Type *To) const;
H A DInstCombineShifts.cpp1244 (!Ty->isIntegerTy() || shouldChangeType(Ty, X->getType()))) { in visitLShr()
1261 if ((!Ty->isIntegerTy() || shouldChangeType(Ty, X->getType())) && in visitLShr()
1537 (Ty->isVectorTy() || shouldChangeType(Ty, X->getType()))) { in visitAShr()
H A DInstructionCombining.cpp234 bool InstCombinerImpl::shouldChangeType(unsigned FromWidth, in shouldChangeType() function in InstCombinerImpl
262 bool InstCombinerImpl::shouldChangeType(Type *From, Type *To) const { in shouldChangeType() function in InstCombinerImpl
270 return shouldChangeType(FromWidth, ToWidth); in shouldChangeType()
3259 shouldChangeType(Known.getBitWidth(), NewWidth)) { in visitSwitchInst()
H A DInstCombinePHI.cpp893 if (!shouldChangeType(PN.getType(), CastSrcTy)) in foldPHIArgOpIntoPHI()
H A DInstCombineCalls.cpp917 if (!shouldChangeType(Ty->getScalarType()->getIntegerBitWidth(), NewBitWidth)) in matchSAddSubSat()
H A DInstCombineAndOrXor.cpp1698 if (!isa<VectorType>(Ty) && !shouldChangeType(Ty, X->getType())) in narrowMaskedBinOp()
H A DInstCombineCompares.cpp1465 if (!SrcTy->isVectorTy() && shouldChangeType(DstBits, SrcBits)) { in foldICmpTruncConstant()