| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | GuardUtils.cpp | 82 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 D | SimplifyCFG.cpp | 3598 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 D | HardwareLoops.cpp | 480 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 D | BranchFolding.cpp | 1103 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 D | GuardUtils.h | 35 void widenWidenableBranch(BranchInst *WidenableBR, Value *NewCond);
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | IndVarSimplify.cpp | 1293 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 D | LoopPredication.cpp | 1238 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 D | GuardWidening.cpp | 98 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 D | LoopStrengthReduce.cpp | 2398 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 D | PPCReduceCRLogicals.cpp | 116 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 D | TargetLowering.cpp | 3846 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 D | M68kISelLowering.cpp | 2067 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 D | SIInstrInfo.h | 132 Register NewCond = Register()) const;
|
| H A D | SIInstrInfo.cpp | 7287 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 D | AMDGPUISelLowering.cpp | 3765 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 D | InstCombineSelect.cpp | 3185 Value *NewCond = Builder.CreateFCmp(InvPred, Cmp0, Cmp1, in visitSelectInst() local 3187 Value *NewSel = Builder.CreateSelect(NewCond, FalseVal, TrueVal); in visitSelectInst()
|
| H A D | InstructionCombining.cpp | 3262 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 D | LoopVectorize.cpp | 9606 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 D | X86InstrInfo.td | 3409 class CondCodeAlias<string Prefix,string Suffix, string OldCond, string NewCond, 3412 !strconcat(Prefix, NewCond, Suffix), VariantName>;
|
| H A D | X86ISelLowering.cpp | 25568 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 D | RISCVISelLowering.cpp | 10013 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 D | AArch64ISelLowering.cpp | 20258 auto NewCond = getInvertedCondCode(OldCond); in performSETCCCombine() local 20263 LHS.getOperand(1), DAG.getConstant(NewCond, DL, MVT::i32), in performSETCCCombine()
|