Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp1013 Constant *TruncC = ConstantExpr::getTrunc(C, X->getType()); in narrowUDivURem() local
1014 if (ConstantExpr::getZExt(TruncC, Ty) != C) in narrowUDivURem()
1021 Value *NarrowOp = isa<Constant>(D) ? Builder.CreateBinOp(Opcode, X, TruncC) in narrowUDivURem()
1022 : Builder.CreateBinOp(Opcode, TruncC, X); in narrowUDivURem()
H A DInstCombineAndOrXor.cpp1387 Constant *TruncC = ConstantExpr::getTrunc(C, SrcTy); in foldLogicCastConstant() local
1388 Constant *ZextTruncC = ConstantExpr::getZExt(TruncC, DestTy); in foldLogicCastConstant()
1391 Value *NewOp = Builder.CreateBinOp(LogicOpc, X, TruncC); in foldLogicCastConstant()
1397 Constant *TruncC = ConstantExpr::getTrunc(C, SrcTy); in foldLogicCastConstant() local
1398 Constant *SextTruncC = ConstantExpr::getSExt(TruncC, DestTy); in foldLogicCastConstant()
1401 Value *NewOp = Builder.CreateBinOp(LogicOpc, X, TruncC); in foldLogicCastConstant()
1878 Constant *TruncC = ConstantInt::get(X->getType(), C->trunc(XWidth)); in visitAnd() local
1879 Value *And = Builder.CreateAnd(BinOp, TruncC); in visitAnd()
H A DInstCombineSelect.cpp1980 Constant *TruncC = ConstantExpr::getTrunc(C, SmallType); in foldSelectExtConst() local
1981 Constant *ExtC = ConstantExpr::getCast(ExtOpcode, TruncC, SelType); in foldSelectExtConst()
1983 Value *TruncCVal = cast<Value>(TruncC); in foldSelectExtConst()
H A DInstCombineCompares.cpp6883 APFloat TruncC = *C; in visitFCmpInst() local
6884 TruncC.convert(FPSem, APFloat::rmNearestTiesToEven, &Lossy); in visitFCmpInst()
6913 APFloat Fabs = TruncC; in visitFCmpInst()
6917 Constant *NewC = ConstantFP::get(X->getType(), TruncC); in visitFCmpInst()