Home
last modified time | relevance | path

Searched refs:NewCond (Results 1 – 20 of 20) sorted by relevance

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DGuardUtils.cpp82 void llvm::widenWidenableBranch(BranchInst *WidenableBR, Value *NewCond) { in widenWidenableBranch() argument
96 WidenableBR->setCondition(B.CreateAnd(NewCond, WC->get())); in widenWidenableBranch()
100 C->set(B.CreateAnd(NewCond, C->get())); in widenWidenableBranch()
108 void llvm::setWidenableBranchCond(BranchInst *WidenableBR, Value *NewCond) { in setWidenableBranchCond() argument
117 WidenableBR->setCondition(B.CreateAnd(NewCond, WC->get())); in setWidenableBranchCond()
123 C->set(NewCond); in setWidenableBranchCond()
H A DSimplifyCFG.cpp3019 Value *NewCond = PBI->getCondition(); in performBranchToCommonDestFolding() local
3020 if (NewCond->hasOneUse() && isa<CmpInst>(NewCond)) { in performBranchToCommonDestFolding()
3021 CmpInst *CI = cast<CmpInst>(NewCond); in performBranchToCommonDestFolding()
3024 NewCond = in performBranchToCommonDestFolding()
3025 Builder.CreateNot(NewCond, PBI->getCondition()->getName() + ".not"); in performBranchToCommonDestFolding()
3028 PBI->setCondition(NewCond); in performBranchToCommonDestFolding()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DHardwareLoops.cpp477 Value *NewCond = CondBuilder.CreateCall(DecFunc, Ops); in InsertLoopDec() local
479 ExitBranch->setCondition(NewCond); in InsertLoopDec()
489 LLVM_DEBUG(dbgs() << "HWLoops: Inserted loop dec: " << *NewCond << "\n"); in InsertLoopDec()
519 Value *NewCond = in UpdateBranch() local
522 ExitBranch->setCondition(NewCond); in UpdateBranch()
H A DBranchFolding.cpp1099 SmallVector<MachineOperand, 4> NewCond(Cond); in TailMergeBlocks() local
1101 if (TII->reverseBranchCondition(NewCond)) in TailMergeBlocks()
1118 NewCond, dl); in TailMergeBlocks()
1553 SmallVector<MachineOperand, 4> NewCond(CurCond); in OptimizeBlock() local
1554 if (!TII->reverseBranchCondition(NewCond)) { in OptimizeBlock()
1557 TII->insertBranch(*MBB, CurFBB, CurTBB, NewCond, dl); in OptimizeBlock()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DGuardUtils.h35 void widenWidenableBranch(BranchInst *WidenableBR, Value *NewCond);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DIndVarSimplify.cpp1294 static void replaceExitCond(BranchInst *BI, Value *NewCond, in replaceExitCond() argument
1297 BI->setCondition(NewCond); in replaceExitCond()
1307 auto *NewCond = in foldExit() local
1309 replaceExitCond(BI, NewCond, DeadInsts); in foldExit()
1324 auto *NewCond = Builder.CreateICmp(InvariantPred, LHSV, RHSV, in replaceWithInvariantCond() local
1326 replaceExitCond(BI, NewCond, DeadInsts); in replaceWithInvariantCond()
1692 Value *NewCond; in predicateLoopExits() local
1694 NewCond = L->contains(BI->getSuccessor(0)) ? in predicateLoopExits()
1708 NewCond = B.CreateICmp(Pred, ECV, RHS); in predicateLoopExits()
1711 BI->setCondition(NewCond); in predicateLoopExits()
H A DLoopPredication.cpp1165 Value *NewCond = B.CreateICmp(ICmpInst::ICMP_UGT, ECV, RHS); in predicateLoopExits() local
1169 NewCond = B.CreateFreeze(NewCond); in predicateLoopExits()
1171 widenWidenableBranch(WidenableBR, NewCond); in predicateLoopExits()
H A DGuardWidening.cpp97 static void setCondition(Instruction *I, Value *NewCond) { in setCondition() argument
101 GI->setArgOperand(0, NewCond); in setCondition()
104 cast<BranchInst>(I)->setCondition(NewCond); in setCondition()
H A DLoopStrengthReduce.cpp2378 ICmpInst *NewCond = in OptimizeMax() local
2382 NewCond->setDebugLoc(Cond->getDebugLoc()); in OptimizeMax()
2383 Cond->replaceAllUsesWith(NewCond); in OptimizeMax()
2384 CondUse->setUser(NewCond); in OptimizeMax()
2390 return NewCond; in OptimizeMax()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCReduceCRLogicals.cpp116 MachineInstr *NewCond; member
125 if (NewCond && NewCond->getParent() != MBB) in allInstrsInSameMBB()
232 if (BSI.NewCond) { in splitMBB()
235 FirstTerminator->getOperand(0).setReg(BSI.NewCond->getOperand(0).getReg()); in splitMBB()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp3259 ISD::CondCode NewCond; in optimizeSetCCOfSignedTruncationCheck() local
3261 NewCond = ISD::CondCode::SETEQ; in optimizeSetCCOfSignedTruncationCheck()
3263 NewCond = ISD::CondCode::SETEQ; in optimizeSetCCOfSignedTruncationCheck()
3267 NewCond = ISD::CondCode::SETNE; in optimizeSetCCOfSignedTruncationCheck()
3271 NewCond = ISD::CondCode::SETNE; in optimizeSetCCOfSignedTruncationCheck()
3289 NewCond = getSetCCInverse(NewCond, XVT); in optimizeSetCCOfSignedTruncationCheck()
4163 ISD::CondCode NewCond = Cond; in SimplifySetCC() local
4213 ISD::CondCode NewCond = ISD::SETCC_INVALID; in SimplifySetCC() local
4221 if (NewCond != ISD::SETCC_INVALID && in SimplifySetCC()
4243 if (NewCond != Cond && in SimplifySetCC()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlan.cpp347 Value *NewCond = State->get(CBV, {0, 0}); in execute() local
355 auto *CondBr = BranchInst::Create(NewBB, nullptr, NewCond); in execute()
H A DLoopVectorize.cpp9659 Value *NewCond = State.get(Cond, Part); in execute() local
9665 Value *Select = State.Builder.CreateSelect(NewCond, NewVecOp, IdenVec); in execute()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kISelLowering.cpp2027 if (SDValue NewCond = LowerSETCC(Cond, DAG)) in LowerSELECT() local
2028 Cond = NewCond; in LowerSELECT()
2262 if (SDValue NewCond = LowerSETCC(Cond, DAG)) in LowerBRCOND() local
2263 Cond = NewCond; in LowerBRCOND()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp2855 Value *NewCond = Builder.CreateFCmp(InvPred, Cmp0, Cmp1, in visitSelectInst() local
2857 Value *NewSel = Builder.CreateSelect(NewCond, FalseVal, TrueVal); in visitSelectInst()
H A DInstructionCombining.cpp3044 Value *NewCond = Builder.CreateTrunc(Cond, Ty, "trunc"); in visitSwitchInst() local
3050 return replaceOperand(SI, 0, NewCond); in visitSwitchInst()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp3702 SDValue NewCond = DAG.getSetCC(SL, Cond.getValueType(), LHS, RHS, NewCC); in performSelectCombine() local
3703 return DAG.getNode(ISD::SELECT, SL, VT, NewCond, False, True); in performSelectCombine()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstrInfo.td3333 class CondCodeAlias<string Prefix,string Suffix, string OldCond, string NewCond,
3336 !strconcat(Prefix, NewCond, Suffix), VariantName>;
H A DX86ISelLowering.cpp23858 if (SDValue NewCond = LowerSETCC(Cond, DAG)) { in LowerSELECT() local
23859 Cond = NewCond; in LowerSELECT()
42226 SDValue NewCond = in combineSelect() local
42228 return DAG.getSelect(DL, VT, NewCond, RHS, LHS); in combineSelect()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp15754 auto NewCond = getInvertedCondCode(OldCond); in performSETCCCombine() local
15759 LHS.getOperand(1), DAG.getConstant(NewCond, DL, MVT::i32), in performSETCCCombine()