Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/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.cpp3080 Value *NewCond = PBI->getCondition(); in performBranchToCommonDestFolding() local
3081 if (NewCond->hasOneUse() && isa<CmpInst>(NewCond)) { in performBranchToCommonDestFolding()
3082 CmpInst *CI = cast<CmpInst>(NewCond); in performBranchToCommonDestFolding()
3085 NewCond = in performBranchToCommonDestFolding()
3086 Builder.CreateNot(NewCond, PBI->getCondition()->getName() + ".not"); in performBranchToCommonDestFolding()
3089 PBI->setCondition(NewCond); in performBranchToCommonDestFolding()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DHardwareLoops.cpp472 Value *NewCond = CondBuilder.CreateCall(DecFunc, Ops); in InsertLoopDec() local
474 ExitBranch->setCondition(NewCond); in InsertLoopDec()
484 LLVM_DEBUG(dbgs() << "HWLoops: Inserted loop dec: " << *NewCond << "\n"); in InsertLoopDec()
514 Value *NewCond = in UpdateBranch() local
517 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()
1563 SmallVector<MachineOperand, 4> NewCond(CurCond); in OptimizeBlock() local
1564 if (!TII->reverseBranchCondition(NewCond)) { in OptimizeBlock()
1567 TII->insertBranch(*MBB, CurFBB, CurTBB, NewCond, dl); in OptimizeBlock()
/netbsd-src/external/apache2/llvm/dist/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.cpp2346 ICmpInst *NewCond = in OptimizeMax() local
2350 NewCond->setDebugLoc(Cond->getDebugLoc()); in OptimizeMax()
2351 Cond->replaceAllUsesWith(NewCond); in OptimizeMax()
2352 CondUse->setUser(NewCond); in OptimizeMax()
2358 return NewCond; in OptimizeMax()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DGuardUtils.h35 void widenWidenableBranch(BranchInst *WidenableBR, Value *NewCond);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp3234 ISD::CondCode NewCond; in optimizeSetCCOfSignedTruncationCheck() local
3236 NewCond = ISD::CondCode::SETEQ; in optimizeSetCCOfSignedTruncationCheck()
3238 NewCond = ISD::CondCode::SETEQ; in optimizeSetCCOfSignedTruncationCheck()
3242 NewCond = ISD::CondCode::SETNE; in optimizeSetCCOfSignedTruncationCheck()
3246 NewCond = ISD::CondCode::SETNE; in optimizeSetCCOfSignedTruncationCheck()
3264 NewCond = getSetCCInverse(NewCond, XVT); in optimizeSetCCOfSignedTruncationCheck()
3293 SDValue T2 = DAG.getSetCC(DL, SCCVT, T1, X, NewCond); in optimizeSetCCOfSignedTruncationCheck()
4138 ISD::CondCode NewCond = Cond; in SimplifySetCC() local
4142 NewCond = (Cond == ISD::SETULE) ? ISD::SETULT : ISD::SETUGE; in SimplifySetCC()
4153 return DAG.getSetCC(dl, VT, Shift, CmpRHS, NewCond); in SimplifySetCC()
[all …]
/netbsd-src/external/apache2/llvm/dist/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.cpp9463 Value *NewCond = State.get(Cond, Part); in execute() local
9469 Value *Select = State.Builder.CreateSelect(NewCond, NewVecOp, IdenVec); in execute()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp2835 Value *NewCond = Builder.CreateFCmp(InvPred, Cmp0, Cmp1, in visitSelectInst() local
2837 Value *NewSel = Builder.CreateSelect(NewCond, FalseVal, TrueVal); in visitSelectInst()
H A DInstructionCombining.cpp2978 Value *NewCond = Builder.CreateTrunc(Cond, Ty, "trunc"); in visitSwitchInst() local
2984 return replaceOperand(SI, 0, NewCond); in visitSwitchInst()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp3585 SDValue NewCond = DAG.getSetCC(SL, Cond.getValueType(), LHS, RHS, NewCC); in performSelectCombine() local
3586 return DAG.getNode(ISD::SELECT, SL, VT, NewCond, False, True); in performSelectCombine()
/netbsd-src/external/apache2/llvm/dist/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.cpp23690 if (SDValue NewCond = LowerSETCC(Cond, DAG)) { in LowerSELECT() local
23691 Cond = NewCond; in LowerSELECT()
41936 SDValue NewCond = in combineSelect() local
41938 return DAG.getSelect(DL, VT, NewCond, RHS, LHS); in combineSelect()