Home
last modified time | relevance | path

Searched refs:NewCast (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp173 Value *NewCast = Builder.CreateBitCast(New, AI.getType(), "tmpcast"); in PromoteCastOfAllocation() local
174 replaceInstUsesWith(AI, NewCast); in PromoteCastOfAllocation()
2113 Value *NewCast = Builder.CreatePtrToInt(Scalar, Ty->getScalarType()); in visitPtrToInt() local
2114 return InsertElementInst::Create(Vec, NewCast, Index); in visitPtrToInt()
H A DInstCombineSimplifyDemanded.cpp454 CastInst *NewCast = new ZExtInst(I->getOperand(0), VTy, I->getName()); in SimplifyDemandedUseBits() local
455 return InsertNewInstWith(NewCast, *I); in SimplifyDemandedUseBits()
H A DInstCombineSelect.cpp2994 Value *NewCast = Builder.CreateCast(CastOp, NewSI, SelType); in visitSelectInst() local
2995 return replaceInstUsesWith(SI, NewCast); in visitSelectInst()
H A DInstCombineCompares.cpp3080 Value *NewCast = Builder.CreateBitCast(X, NewType); in foldICmpBitCast() local
3081 return new ICmpInst(Pred, NewCast, ConstantInt::getNullValue(NewType)); in foldICmpBitCast()