Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandLargeDivRem.cpp69 if (auto *NewBO = dyn_cast<BinaryOperator>(Op)) { in scalarize() local
70 NewBO->copyIRFlags(Op, true); in scalarize()
71 Replace.push_back(NewBO); in scalarize()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp720 BinaryOperator *NewBO = nullptr; in distributeExtsAndCloneChain() local
722 NewBO = BinaryOperator::Create(BO->getOpcode(), NextInChain, TheOther, in distributeExtsAndCloneChain()
725 NewBO = BinaryOperator::Create(BO->getOpcode(), TheOther, NextInChain, in distributeExtsAndCloneChain()
728 return UserChain[ChainIndex] = NewBO; in distributeExtsAndCloneChain()
773 BinaryOperator *NewBO; in removeConstOffset() local
775 NewBO = BinaryOperator::Create(NewOp, NextInChain, TheOther, "", IP); in removeConstOffset()
777 NewBO = BinaryOperator::Create(NewOp, TheOther, NextInChain, "", IP); in removeConstOffset()
779 NewBO->takeName(BO); in removeConstOffset()
780 return NewBO; in removeConstOffset()
H A DLICM.cpp2815 auto *NewBO = in hoistMulAddAssociation() local
2818 NewBO->setDebugLoc(DebugLoc::getDropped()); in hoistMulAddAssociation()
2819 NewBO->copyIRFlags(Ins); in hoistMulAddAssociation()
2821 VariantOp = NewBO; in hoistMulAddAssociation()
2822 Ins->replaceAllUsesWith(NewBO); in hoistMulAddAssociation()
2873 auto *NewBO = BinaryOperator::Create( in hoistBOAssociation() local
2875 NewBO->setDebugLoc(DebugLoc::getDropped()); in hoistBOAssociation()
2882 NewBO->setFastMathFlags(Intersect); in hoistBOAssociation()
2892 Flags.applyFlags(*NewBO); in hoistBOAssociation()
2895 BO->replaceAllUsesWith(NewBO); in hoistBOAssociation()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILLegalizePass.cpp157 auto *NewBO = dyn_cast<BinaryOperator>(NewInst); in fixI8UseChain() local
158 if (NewBO && OBO->hasNoSignedWrap()) in fixI8UseChain()
159 NewBO->setHasNoSignedWrap(); in fixI8UseChain()
160 if (NewBO && OBO->hasNoUnsignedWrap()) in fixI8UseChain()
161 NewBO->setHasNoUnsignedWrap(); in fixI8UseChain()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp586 BinaryOperator *NewBO = (IsNUW && Opcode == Instruction::Add) ? in SimplifyAssociativeOrCommutative() local
590 if (isa<FPMathOperator>(NewBO)) { in SimplifyAssociativeOrCommutative()
594 NewBO->setFastMathFlags(Flags); in SimplifyAssociativeOrCommutative()
596 InsertNewInstWith(NewBO, I.getIterator()); in SimplifyAssociativeOrCommutative()
597 NewBO->takeName(Op1); in SimplifyAssociativeOrCommutative()
598 replaceOperand(I, 0, NewBO); in SimplifyAssociativeOrCommutative()
2038 auto *NewBO = BinaryOperator::Create(Opc, NewPN, C); in foldBinopWithRecurrence() local
2043 NewBO->setFastMathFlags(Intersect); in foldBinopWithRecurrence()
2051 Flags.applyFlags(*NewBO); in foldBinopWithRecurrence()
2053 NewBO->takeName(&BO); in foldBinopWithRecurrence()
[all …]
H A DInstCombineVectorOps.cpp2278 Instruction *NewBO = BinaryOperator::Create(BOpcode, X, NewC); in foldSelectShuffleWith1Binop() local
2279 NewBO->copyIRFlags(BO); in foldSelectShuffleWith1Binop()
2285 NewBO->dropPoisonGeneratingFlags(); in foldSelectShuffleWith1Binop()
2286 return NewBO; in foldSelectShuffleWith1Binop()
2442 Value *NewBO = ConstantsAreOp1 ? Builder.CreateBinOp(BOpc, V, NewC) : in foldSelectShuffle() local
2450 if (auto *NewI = dyn_cast<Instruction>(NewBO)) { in foldSelectShuffle()
2458 return replaceInstUsesWith(Shuf, NewBO); in foldSelectShuffle()
2863 Value *NewBO = Builder.CreateBinOp(BinOp->getOpcode(), X, Y); in simplifyBinOpSplats() local
2864 if (auto NewBOI = dyn_cast<Instruction>(NewBO)) in simplifyBinOpSplats()
2867 return new ShuffleVectorInst(NewBO, SVI.getShuffleMask()); in simplifyBinOpSplats()
H A DInstCombineCasts.cpp2461 Value *NewBO = Builder.CreateBinOp(BO->getOpcode(), CastedOp, Y); in foldBitCastBitwiseLogic() local
2462 return CastInst::CreateBitOrPointerCast(NewBO, DestTy); in foldBitCastBitwiseLogic()
2468 Value *NewBO = Builder.CreateBinOp(BO->getOpcode(), CastedOp, X); in foldBitCastBitwiseLogic() local
2469 return CastInst::CreateBitOrPointerCast(NewBO, DestTy); in foldBitCastBitwiseLogic()
H A DInstCombineAndOrXor.cpp1999 Value *NewBO = Opc == Instruction::Sub ? Builder.CreateBinOp(Opc, NewC, X) in narrowMaskedBinOp() local
2001 return new ZExtInst(Builder.CreateAnd(NewBO, X), Ty); in narrowMaskedBinOp()
2551 Value *NewBO = in visitAnd() local
2553 return new ZExtInst(NewBO, Ty); in visitAnd()
2561 Value *NewBO = in visitAnd() local
2563 return new ZExtInst(NewBO, Ty); in visitAnd()
H A DInstCombineSelect.cpp472 BinaryOperator *NewBO = BinaryOperator::Create(BO->getOpcode(), Op0, Op1); in foldSelectOpOp() local
473 NewBO->copyIRFlags(TI); in foldSelectOpOp()
474 NewBO->andIRFlags(FI); in foldSelectOpOp()
475 return NewBO; in foldSelectOpOp()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp798 Value *NewBO = Builder.CreateBinOp(BinOpcode, NewIns0, NewIns1); in foldInsExtBinop() local
801 if (auto *NewInst = dyn_cast<Instruction>(NewBO)) { in foldInsExtBinop()
808 replaceValue(I, *NewBO); in foldInsExtBinop()
2064 Value *NewBO = Builder.CreateBinOp(Opcode, LHS, RHS); in foldPermuteOfBinops() local
2067 if (auto *NewInst = dyn_cast<Instruction>(NewBO)) in foldPermuteOfBinops()
2072 replaceValue(I, *NewBO); in foldPermuteOfBinops()
2207 Value *NewBO = PredLHS == CmpInst::BAD_ICMP_PREDICATE in foldShuffleOfBinops() local
2213 if (auto *NewInst = dyn_cast<Instruction>(NewBO)) { in foldShuffleOfBinops()
2220 replaceValue(I, *NewBO); in foldShuffleOfBinops()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolution.cpp7533 auto NewBO = MatchBinaryOp(BO->LHS, getDataLayout(), AC, DT, in getOperandsToCreate() local
7535 if (!NewBO || in getOperandsToCreate()
7537 (NewBO->Opcode != Instruction::Add && in getOperandsToCreate()
7538 NewBO->Opcode != Instruction::Sub)) || in getOperandsToCreate()
7540 NewBO->Opcode != Instruction::Mul)) { in getOperandsToCreate()
7553 BO = NewBO; in getOperandsToCreate()
7745 auto NewBO = MatchBinaryOp(BO->LHS, getDataLayout(), AC, DT, in createSCEV() local
7747 if (!NewBO || (NewBO->Opcode != Instruction::Add && in createSCEV()
7748 NewBO->Opcode != Instruction::Sub)) { in createSCEV()
7752 BO = NewBO; in createSCEV()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DInstruction.cpp1245 if (auto *NewBO = dyn_cast<BinaryOperator>(NewV)) in createWithCopiedFlags() local
1246 cast<llvm::BinaryOperator>(NewBO->Val)->copyIRFlags(CopyFrom->Val); in createWithCopiedFlags()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp2498 SDValue NewBO = DAG.getNode(Opcode, SDLoc(N), VT, F0, FVal, N->getFlags()); in foldSelectWithIdentityConstant() local
2499 return DAG.getSelect(SDLoc(N), VT, Cond, F0, NewBO); in foldSelectWithIdentityConstant()
2506 SDValue NewBO = DAG.getNode(Opcode, SDLoc(N), VT, F0, TVal, N->getFlags()); in foldSelectWithIdentityConstant() local
2507 return DAG.getSelect(SDLoc(N), VT, Cond, NewBO, F0); in foldSelectWithIdentityConstant()
26898 SDValue NewBO = in visitVECTOR_SHUFFLE() local
26900 SDValue Insert = DAG.getNode(ISD::SCALAR_TO_VECTOR, DL, VT, NewBO); in visitVECTOR_SHUFFLE()