/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsISelDAGToDAG.cpp | 262 SDValue NegC = CurDAG->FoldConstantArithmetic( in selectVecAddAsVecSubIfProfitable() local 264 assert(NegC && "Constant-folding failed!"); in selectVecAddAsVecSubIfProfitable() 265 SDValue NewNode = CurDAG->getNode(ISD::SUB, DL, VT, X, NegC); in selectVecAddAsVecSubIfProfitable()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineMulDivRem.cpp | 485 Constant *NegC = ConstantExpr::getNeg(ImmC); in visitMul() local 486 return SelectInst::Create(X, NegC, ConstantInt::getNullValue(Ty)); in visitMul() 493 Constant *NegC = ConstantExpr::getNeg(ImmC); in visitMul() local 495 return SelectInst::Create(IsNeg, NegC, ConstantInt::getNullValue(Ty)); in visitMul() 907 if (Constant *NegC = ConstantFoldUnaryOpOperand(Instruction::FNeg, C, DL)) in visitFMul() local 908 return BinaryOperator::CreateFMulFMF(X, NegC, &I); in visitFMul() 1653 Constant *NegC = ConstantInt::get(Ty, -(*Op1C)); in visitSDiv() local 1654 Instruction *BO = BinaryOperator::CreateSDiv(X, NegC); in visitSDiv() 1732 if (Constant *NegC = ConstantFoldUnaryOpOperand(Instruction::FNeg, C, DL)) in foldFDivConstantDivisor() local 1733 return BinaryOperator::CreateFDivFMF(X, NegC, &I); in foldFDivConstantDivisor() [all …]
|
H A D | InstCombineAddSub.cpp | 2685 if (Constant *NegC = ConstantFoldUnaryOpOperand(Instruction::FNeg, C, DL)) in foldFNegIntoConstant() local 2686 return BinaryOperator::CreateFMulFMF(X, NegC, &I); in foldFNegIntoConstant() 2689 if (Constant *NegC = ConstantFoldUnaryOpOperand(Instruction::FNeg, C, DL)) in foldFNegIntoConstant() local 2690 return BinaryOperator::CreateFDivFMF(X, NegC, &I); in foldFNegIntoConstant() 2693 if (Constant *NegC = ConstantFoldUnaryOpOperand(Instruction::FNeg, C, DL)) { in foldFNegIntoConstant() local 2694 Instruction *FDiv = BinaryOperator::CreateFDivFMF(NegC, X, &I); in foldFNegIntoConstant() 2708 if (Constant *NegC = ConstantFoldUnaryOpOperand(Instruction::FNeg, C, DL)) in foldFNegIntoConstant() local 2709 return BinaryOperator::CreateFSubFMF(NegC, X, &I); in foldFNegIntoConstant() 2893 if (Constant *NegC = ConstantFoldUnaryOpOperand(Instruction::FNeg, C, DL)) in visitFSub() local 2894 return BinaryOperator::CreateFAddFMF(Op0, NegC, &I); in visitFSub()
|
H A D | InstCombineCompares.cpp | 8257 if (Constant *NegC = ConstantFoldUnaryOpOperand(Instruction::FNeg, C, DL)) in visitFCmpInst() local 8258 return new FCmpInst(I.getSwappedPredicate(), X, NegC, "", &I); in visitFCmpInst()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCInstrInfo.cpp | 567 Constant *NegC = ConstantFP::get(dyn_cast<ConstantFP>(C)->getContext(), F1); in finalizeInsInstrs() local 571 unsigned ConstPoolIdx = MCP->getConstantPoolIndex(NegC, Alignment); in finalizeInsInstrs()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | DAGCombiner.cpp | 8236 ConstantSDNode *NegC = isConstOrConstSplat(Neg.getOperand(0)); in matchRotateSub() local 8237 if (!NegC) in matchRotateSub() 8270 Width = NegC->getAPIntValue(); in matchRotateSub() 8283 Width = PosC->getAPIntValue() + NegC->getAPIntValue(); in matchRotateSub()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVISelLowering.cpp | 15531 bool NegC = invertIfNegative(C); in combineVFMADD_VLWithVFNEG_VL() 15534 if (!NegA && !NegB && !NegC) in combineVFMADD_VLWithVFNEG_VL() 15537 unsigned NewOpcode = negateFMAOpcode(N->getOpcode(), NegA != NegB, NegC); in combineVFMADD_VLWithVFNEG_VL() 15528 bool NegC = invertIfNegative(C); combineVFMADD_VLWithVFNEG_VL() local
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86ISelLowering.cpp | 52916 bool NegC = !!NewOps[2]; in getNegatedExpression() local 52917 unsigned NewOpc = negateFMAOpcode(Opc, NegA != NegB, NegC, true); in getNegatedExpression() 52919 Cost = (NegA || NegB || NegC) ? NegatibleCost::Cheaper in getNegatedExpression() 54079 bool NegC = invertIfNegative(C); in combineFMA() local 54081 if (!NegA && !NegB && !NegC) in combineFMA() 54085 negateFMAOpcode(N->getOpcode(), NegA != NegB, NegC, false); in combineFMA()
|