Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/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.cpp3598 Value *NewCond = PBI->getCondition(); in performBranchToCommonDestFolding() local
3599 if (NewCond->hasOneUse() && isa<CmpInst>(NewCond)) { in performBranchToCommonDestFolding()
3600 CmpInst *CI = cast<CmpInst>(NewCond); in performBranchToCommonDestFolding()
3603 NewCond = in performBranchToCommonDestFolding()
3604 Builder.CreateNot(NewCond, PBI->getCondition()->getName() + ".not"); in performBranchToCommonDestFolding()
3607 PBI->setCondition(NewCond); in performBranchToCommonDestFolding()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DHardwareLoops.cpp480 Value *NewCond = CondBuilder.CreateCall(DecFunc, Ops); in InsertLoopDec() local
482 ExitBranch->setCondition(NewCond); in InsertLoopDec()
492 LLVM_DEBUG(dbgs() << "HWLoops: Inserted loop dec: " << *NewCond << "\n"); in InsertLoopDec()
522 Value *NewCond = in UpdateBranch() local
525 ExitBranch->setCondition(NewCond); in UpdateBranch()
H A DBranchFolding.cpp1103 SmallVector<MachineOperand, 4> NewCond(Cond); in TailMergeBlocks() local
1105 if (TII->reverseBranchCondition(NewCond)) in TailMergeBlocks()
1122 NewCond, dl); in TailMergeBlocks()
1556 SmallVector<MachineOperand, 4> NewCond(CurCond); in OptimizeBlock() local
1557 if (!TII->reverseBranchCondition(NewCond)) { in OptimizeBlock()
1560 TII->insertBranch(*MBB, CurFBB, CurTBB, NewCond, dl); in OptimizeBlock()
/openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/Utils/
H A DGuardUtils.h35 void widenWidenableBranch(BranchInst *WidenableBR, Value *NewCond);
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DIndVarSimplify.cpp1293 static void replaceExitCond(BranchInst *BI, Value *NewCond, in replaceExitCond() argument
1297 << " with " << *NewCond << "\n"); in replaceExitCond()
1298 BI->setCondition(NewCond); in replaceExitCond()
1315 auto *NewCond = createFoldedExitCond(L, ExitingBB, IsTaken); in foldExit() local
1316 replaceExitCond(BI, NewCond, DeadInsts); in foldExit()
1519 auto *NewCond = *Replaced; in optimizeLoopExitWithUnknownExitCount() local
1520 if (auto *NCI = dyn_cast<Instruction>(NewCond)) { in optimizeLoopExitWithUnknownExitCount()
1525 << " with " << *NewCond << "\n"); in optimizeLoopExitWithUnknownExitCount()
1527 OldCond->replaceAllUsesWith(NewCond); in optimizeLoopExitWithUnknownExitCount()
1976 Value *NewCond; in predicateLoopExits() local
[all …]
H A DLoopPredication.cpp1238 Value *NewCond = B.CreateICmp(ICmpInst::ICMP_UGT, ECV, RHS); in predicateLoopExits() local
1242 NewCond = B.CreateFreeze(NewCond); in predicateLoopExits()
1244 widenWidenableBranch(WidenableBR, NewCond); in predicateLoopExits()
H A DGuardWidening.cpp98 static void setCondition(Instruction *I, Value *NewCond) { in setCondition() argument
102 GI->setArgOperand(0, NewCond); in setCondition()
105 cast<BranchInst>(I)->setCondition(NewCond); in setCondition()
H A DLoopStrengthReduce.cpp2398 ICmpInst *NewCond = in OptimizeMax() local
2402 NewCond->setDebugLoc(Cond->getDebugLoc()); in OptimizeMax()
2403 Cond->replaceAllUsesWith(NewCond); in OptimizeMax()
2404 CondUse->setUser(NewCond); in OptimizeMax()
2410 return NewCond; in OptimizeMax()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp3846 ISD::CondCode NewCond; in optimizeSetCCOfSignedTruncationCheck() local
3848 NewCond = ISD::CondCode::SETEQ; in optimizeSetCCOfSignedTruncationCheck()
3850 NewCond = ISD::CondCode::SETEQ; in optimizeSetCCOfSignedTruncationCheck()
3854 NewCond = ISD::CondCode::SETNE; in optimizeSetCCOfSignedTruncationCheck()
3858 NewCond = ISD::CondCode::SETNE; in optimizeSetCCOfSignedTruncationCheck()
3876 NewCond = getSetCCInverse(NewCond, XVT); in optimizeSetCCOfSignedTruncationCheck()
3905 SDValue T2 = DAG.getSetCC(DL, SCCVT, T1, X, NewCond); in optimizeSetCCOfSignedTruncationCheck()
4894 ISD::CondCode NewCond = Cond; in SimplifySetCC() local
4898 NewCond = (Cond == ISD::SETULE) ? ISD::SETULT : ISD::SETUGE; in SimplifySetCC()
4909 return DAG.getSetCC(dl, VT, Shift, CmpRHS, NewCond); in SimplifySetCC()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/M68k/
H A DM68kISelLowering.cpp2067 if (SDValue NewCond = LowerSETCC(Cond, DAG)) in LowerSELECT() local
2068 Cond = NewCond; in LowerSELECT()
2302 if (SDValue NewCond = LowerSETCC(Cond, DAG)) in LowerBRCOND() local
2303 Cond = NewCond; in LowerBRCOND()
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DSIInstrInfo.h132 Register NewCond = Register()) const;
H A DSIInstrInfo.cpp7287 Register NewCond) const { in addSCCDefUsersToVALUWorklist()
7305 MRI.replaceRegWith(DestReg, NewCond); in addSCCDefUsersToVALUWorklist()
7309 if (NewCond.isValid()) in addSCCDefUsersToVALUWorklist()
7310 MI.getOperand(SCCIdx).setReg(NewCond); in addSCCDefUsersToVALUWorklist()
H A DAMDGPUISelLowering.cpp3765 SDValue NewCond = DAG.getSetCC(SL, Cond.getValueType(), LHS, RHS, NewCC); in performSelectCombine() local
3766 return DAG.getNode(ISD::SELECT, SL, VT, NewCond, False, True); in performSelectCombine()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp3185 Value *NewCond = Builder.CreateFCmp(InvPred, Cmp0, Cmp1, in visitSelectInst() local
3187 Value *NewSel = Builder.CreateSelect(NewCond, FalseVal, TrueVal); in visitSelectInst()
H A DInstructionCombining.cpp3262 Value *NewCond = Builder.CreateTrunc(Cond, Ty, "trunc"); in visitSwitchInst() local
3268 return replaceOperand(SI, 0, NewCond); in visitSwitchInst()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp9606 Value *NewCond = State.get(Cond, Part); in execute() local
9612 Value *Select = State.Builder.CreateSelect(NewCond, NewVecOp, IdenVec); in execute()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86InstrInfo.td3409 class CondCodeAlias<string Prefix,string Suffix, string OldCond, string NewCond,
3412 !strconcat(Prefix, NewCond, Suffix), VariantName>;
H A DX86ISelLowering.cpp25568 if (SDValue NewCond = LowerSETCC(Cond, DAG)) { in LowerSELECT() local
25569 Cond = NewCond; in LowerSELECT()
46237 SDValue NewCond = in combineSelect() local
46239 return DAG.getSelect(DL, VT, NewCond, RHS, LHS); in combineSelect()
/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp10013 if (SDValue NewCond = tryDemorganOfBooleanCondition(LHS, DAG)) { in combine_CC() local
10016 LHS = NewCond; in combine_CC()
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp20258 auto NewCond = getInvertedCondCode(OldCond); in performSETCCCombine() local
20263 LHS.getOperand(1), DAG.getConstant(NewCond, DL, MVT::i32), in performSETCCCombine()