Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp704 BinaryOperator *NewBO = nullptr; in distributeExtsAndCloneChain() local
706 NewBO = BinaryOperator::Create(BO->getOpcode(), NextInChain, TheOther, in distributeExtsAndCloneChain()
709 NewBO = BinaryOperator::Create(BO->getOpcode(), TheOther, NextInChain, in distributeExtsAndCloneChain()
712 return UserChain[ChainIndex] = NewBO; in distributeExtsAndCloneChain()
757 BinaryOperator *NewBO; in removeConstOffset() local
759 NewBO = BinaryOperator::Create(NewOp, NextInChain, TheOther, "", IP); in removeConstOffset()
761 NewBO = BinaryOperator::Create(NewOp, TheOther, NextInChain, "", IP); in removeConstOffset()
763 NewBO->takeName(BO); in removeConstOffset()
764 return NewBO; in removeConstOffset()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp539 if (isa<FPMathOperator>(NewBO)) { in SimplifyAssociativeOrCommutative()
543 NewBO->setFastMathFlags(Flags); in SimplifyAssociativeOrCommutative()
545 InsertNewInstWith(NewBO, I); in SimplifyAssociativeOrCommutative()
546 NewBO->takeName(Op1); in SimplifyAssociativeOrCommutative()
547 replaceOperand(I, 0, NewBO); in SimplifyAssociativeOrCommutative()
1048 if (auto *NewBOI = dyn_cast<Instruction>(NewBO)) in foldOperationIntoSelectOperand()
1050 return NewBO; in foldOperationIntoSelectOperand()
1363 Value *NewBO = Builder.CreateBinOp(BO.getOpcode(), in foldBinopWithPhiOperands() local
1371 NewPhi->addIncoming(NewBO, OtherBB); in foldBinopWithPhiOperands()
1744 NewBO->copyIRFlags(&Inst); in foldVectorBinop()
[all …]
H A DInstCombineVectorOps.cpp2001 Instruction *NewBO = BinaryOperator::Create(BOpcode, X, NewC); in foldSelectShuffleWith1Binop() local
2002 NewBO->copyIRFlags(BO); in foldSelectShuffleWith1Binop()
2008 NewBO->dropPoisonGeneratingFlags(); in foldSelectShuffleWith1Binop()
2009 return NewBO; in foldSelectShuffleWith1Binop()
2162 Value *NewBO = ConstantsAreOp1 ? Builder.CreateBinOp(BOpc, V, NewC) : in foldSelectShuffle() local
2170 if (auto *NewI = dyn_cast<Instruction>(NewBO)) { in foldSelectShuffle()
2178 return replaceInstUsesWith(Shuf, NewBO); in foldSelectShuffle()
H A DInstCombineAndOrXor.cpp1579 Value *NewBO = Opc == Instruction::Sub ? Builder.CreateBinOp(Opc, NewC, X) in narrowMaskedBinOp() local
1581 return new ZExtInst(Builder.CreateAnd(NewBO, X), Ty); in narrowMaskedBinOp()
1891 Value *NewBO = in visitAnd() local
1893 return new ZExtInst(NewBO, Ty); in visitAnd()
1901 Value *NewBO = in visitAnd() local
1903 return new ZExtInst(NewBO, Ty); in visitAnd()
H A DInstCombineCasts.cpp2416 Value *NewBO = Builder.CreateBinOp(BO->getOpcode(), CastedOp, Y); in foldBitCastBitwiseLogic() local
2417 return CastInst::CreateBitOrPointerCast(NewBO, DestTy); in foldBitCastBitwiseLogic()
2423 Value *NewBO = Builder.CreateBinOp(BO->getOpcode(), CastedOp, X); in foldBitCastBitwiseLogic() local
2424 return CastInst::CreateBitOrPointerCast(NewBO, DestTy); in foldBitCastBitwiseLogic()
H A DInstCombineSelect.cpp414 BinaryOperator *NewBO = BinaryOperator::Create(BO->getOpcode(), Op0, Op1); in foldSelectOpOp() local
415 NewBO->copyIRFlags(TI); in foldSelectOpOp()
416 NewBO->andIRFlags(FI); in foldSelectOpOp()
417 return NewBO; in foldSelectOpOp()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp1114 Value *NewBO = Builder.CreateBinOp(Opcode, Shuf0, Shuf1); in foldShuffleOfBinops() local
1116 if (auto *NewInst = dyn_cast<Instruction>(NewBO)) { in foldShuffleOfBinops()
1120 replaceValue(I, *NewBO); in foldShuffleOfBinops()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DScalarEvolution.cpp7270 auto NewBO = MatchBinaryOp(BO->LHS, DT); in getOperandsToCreate() local
7271 if (!NewBO || (NewBO->Opcode != Instruction::Add && in getOperandsToCreate()
7276 BO = NewBO; in getOperandsToCreate()
7290 auto NewBO = MatchBinaryOp(BO->LHS, DT); in getOperandsToCreate() local
7291 if (!NewBO || NewBO->Opcode != Instruction::Mul) { in getOperandsToCreate()
7295 BO = NewBO; in getOperandsToCreate()
7488 auto NewBO = MatchBinaryOp(BO->LHS, DT); in createSCEV() local
7489 if (!NewBO || (NewBO->Opcode != Instruction::Add && in createSCEV()
7494 BO = NewBO; in createSCEV()
7520 if (!NewBO || NewBO->Opcode != Instruction::Mul) { in createSCEV()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp2233 SDValue NewBO = DAG.getNode(Opcode, SDLoc(N), VT, F0, FVal, N->getFlags()); in foldSelectWithIdentityConstant() local
2234 return DAG.getSelect(SDLoc(N), VT, Cond, F0, NewBO); in foldSelectWithIdentityConstant()
2239 SDValue NewBO = DAG.getNode(Opcode, SDLoc(N), VT, F0, TVal, N->getFlags()); in foldSelectWithIdentityConstant() local
2240 return DAG.getSelect(SDLoc(N), VT, Cond, NewBO, F0); in foldSelectWithIdentityConstant()
22525 SDValue NewBO = in visitVECTOR_SHUFFLE() local
22527 SDValue Insert = DAG.getNode(ISD::SCALAR_TO_VECTOR, DL, VT, NewBO); in visitVECTOR_SHUFFLE()