Home
last modified time | relevance | path

Searched refs:NewBO (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandLargeDivRem.cpp70 if (auto *NewBO = dyn_cast<BinaryOperator>(Op)) { in scalarize() local
71 NewBO->copyIRFlags(Op, true); in scalarize()
72 Replace.push_back(NewBO); in scalarize()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp718 BinaryOperator *NewBO = nullptr; in distributeExtsAndCloneChain() local
720 NewBO = BinaryOperator::Create(BO->getOpcode(), NextInChain, TheOther, in distributeExtsAndCloneChain()
723 NewBO = BinaryOperator::Create(BO->getOpcode(), TheOther, NextInChain, in distributeExtsAndCloneChain()
726 return UserChain[ChainIndex] = NewBO; in distributeExtsAndCloneChain()
771 BinaryOperator *NewBO; in removeConstOffset() local
773 NewBO = BinaryOperator::Create(NewOp, NextInChain, TheOther, "", IP); in removeConstOffset()
775 NewBO = BinaryOperator::Create(NewOp, TheOther, NextInChain, "", IP); in removeConstOffset()
777 NewBO->takeName(BO); in removeConstOffset()
778 return NewBO; in removeConstOffset()
H A DLICM.cpp2771 auto *NewBO = BinaryOperator::Create(Ins->getOpcode(), LHS, RHS, in hoistMulAddAssociation() local
2773 NewBO->copyIRFlags(Ins); in hoistMulAddAssociation()
2775 VariantOp = NewBO; in hoistMulAddAssociation()
2776 Ins->replaceAllUsesWith(NewBO); in hoistMulAddAssociation()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp2200 Instruction *NewBO = BinaryOperator::Create(BOpcode, X, NewC); in foldSelectShuffleWith1Binop() local
2201 NewBO->copyIRFlags(BO); in foldSelectShuffleWith1Binop()
2207 NewBO->dropPoisonGeneratingFlags(); in foldSelectShuffleWith1Binop()
2208 return NewBO; in foldSelectShuffleWith1Binop()
2364 Value *NewBO = ConstantsAreOp1 ? Builder.CreateBinOp(BOpc, V, NewC) : in foldSelectShuffle() local
2372 if (auto *NewI = dyn_cast<Instruction>(NewBO)) { in foldSelectShuffle()
2380 return replaceInstUsesWith(Shuf, NewBO); in foldSelectShuffle()
2784 Value *NewBO = Builder.CreateBinOp(BinOp->getOpcode(), X, Y); in simplifyBinOpSplats() local
2785 if (auto NewBOI = dyn_cast<Instruction>(NewBO)) in simplifyBinOpSplats()
2788 return new ShuffleVectorInst(NewBO, SVI.getShuffleMask()); in simplifyBinOpSplats()
H A DInstructionCombining.cpp557 BinaryOperator *NewBO = (IsNUW && Opcode == Instruction::Add) ? in SimplifyAssociativeOrCommutative() local
561 if (isa<FPMathOperator>(NewBO)) { in SimplifyAssociativeOrCommutative()
565 NewBO->setFastMathFlags(Flags); in SimplifyAssociativeOrCommutative()
567 InsertNewInstWith(NewBO, I.getIterator()); in SimplifyAssociativeOrCommutative()
568 NewBO->takeName(Op1); in SimplifyAssociativeOrCommutative()
569 replaceOperand(I, 0, NewBO); in SimplifyAssociativeOrCommutative()
1974 Value *NewBO = Builder.CreateBinOp(BO.getOpcode(), in foldBinopWithPhiOperands() local
1977 if (auto *NotFoldedNewBO = dyn_cast<BinaryOperator>(NewBO)) in foldBinopWithPhiOperands()
1982 NewPhi->addIncoming(NewBO, OtherBB); in foldBinopWithPhiOperands()
2118 Instruction *NewBO = BinaryOperator::Create(Opcode, V1, V2); in foldVectorBinop() local
[all …]
H A DInstCombineCasts.cpp2394 Value *NewBO = Builder.CreateBinOp(BO->getOpcode(), CastedOp, Y); in foldBitCastBitwiseLogic() local
2395 return CastInst::CreateBitOrPointerCast(NewBO, DestTy); in foldBitCastBitwiseLogic()
2401 Value *NewBO = Builder.CreateBinOp(BO->getOpcode(), CastedOp, X); in foldBitCastBitwiseLogic() local
2402 return CastInst::CreateBitOrPointerCast(NewBO, DestTy); in foldBitCastBitwiseLogic()
H A DInstCombineAndOrXor.cpp1944 Value *NewBO = Opc == Instruction::Sub ? Builder.CreateBinOp(Opc, NewC, X) in narrowMaskedBinOp() local
1946 return new ZExtInst(Builder.CreateAnd(NewBO, X), Ty); in narrowMaskedBinOp()
2474 Value *NewBO = in visitAnd() local
2476 return new ZExtInst(NewBO, Ty); in visitAnd()
2484 Value *NewBO = in visitAnd() local
2486 return new ZExtInst(NewBO, Ty); in visitAnd()
H A DInstCombineSelect.cpp487 BinaryOperator *NewBO = BinaryOperator::Create(BO->getOpcode(), Op0, Op1); in foldSelectOpOp() local
488 NewBO->copyIRFlags(TI); in foldSelectOpOp()
489 NewBO->andIRFlags(FI); in foldSelectOpOp()
490 return NewBO; in foldSelectOpOp()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolution.cpp7513 auto NewBO = MatchBinaryOp(BO->LHS, getDataLayout(), AC, DT, in getOperandsToCreate() local
7515 if (!NewBO || in getOperandsToCreate()
7517 (NewBO->Opcode != Instruction::Add && in getOperandsToCreate()
7518 NewBO->Opcode != Instruction::Sub)) || in getOperandsToCreate()
7520 NewBO->Opcode != Instruction::Mul)) { in getOperandsToCreate()
7533 BO = NewBO; in getOperandsToCreate()
7727 auto NewBO = MatchBinaryOp(BO->LHS, getDataLayout(), AC, DT, in createSCEV() local
7729 if (!NewBO || (NewBO->Opcode != Instruction::Add && in createSCEV()
7730 NewBO->Opcode != Instruction::Sub)) { in createSCEV()
7734 BO = NewBO; in createSCEV()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp1475 Value *NewBO = Builder.CreateBinOp(Opcode, Shuf0, Shuf1); in foldShuffleOfBinops() local
1478 if (auto *NewInst = dyn_cast<Instruction>(NewBO)) { in foldShuffleOfBinops()
1485 replaceValue(I, *NewBO); in foldShuffleOfBinops()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp2412 SDValue NewBO = DAG.getNode(Opcode, SDLoc(N), VT, F0, FVal, N->getFlags()); in foldSelectWithIdentityConstant() local
2413 return DAG.getSelect(SDLoc(N), VT, Cond, F0, NewBO); in foldSelectWithIdentityConstant()
2418 SDValue NewBO = DAG.getNode(Opcode, SDLoc(N), VT, F0, TVal, N->getFlags()); in foldSelectWithIdentityConstant() local
2419 return DAG.getSelect(SDLoc(N), VT, Cond, NewBO, F0); in foldSelectWithIdentityConstant()
25813 SDValue NewBO = in visitVECTOR_SHUFFLE() local
25815 SDValue Insert = DAG.getNode(ISD::SCALAR_TO_VECTOR, DL, VT, NewBO); in visitVECTOR_SHUFFLE()