| /llvm-project-15.0.7/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 | 3438 Value *NewCond = PBI->getCondition(); in performBranchToCommonDestFolding() local 3439 if (NewCond->hasOneUse() && isa<CmpInst>(NewCond)) { in performBranchToCommonDestFolding() 3440 CmpInst *CI = cast<CmpInst>(NewCond); in performBranchToCommonDestFolding() 3443 NewCond = in performBranchToCommonDestFolding() 3444 Builder.CreateNot(NewCond, PBI->getCondition()->getName() + ".not"); in performBranchToCommonDestFolding() 3447 PBI->setCondition(NewCond); in performBranchToCommonDestFolding()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/ |
| H A D | GuardUtils.h | 35 void widenWidenableBranch(BranchInst *WidenableBR, Value *NewCond);
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | IndVarSimplify.cpp | 1291 static void replaceExitCond(BranchInst *BI, Value *NewCond, in replaceExitCond() argument 1294 BI->setCondition(NewCond); in replaceExitCond() 1304 auto *NewCond = in foldExit() local 1306 replaceExitCond(BI, NewCond, DeadInsts); in foldExit() 1357 auto *NewCond = Builder.CreateICmp(InvariantPred, LHSV, RHSV, in replaceWithInvariantCond() local 1359 replaceExitCond(BI, NewCond, DeadInsts); in replaceWithInvariantCond() 1856 Value *NewCond; in predicateLoopExits() local 1858 NewCond = L->contains(BI->getSuccessor(0)) ? in predicateLoopExits() 1872 NewCond = B.CreateICmp(Pred, ECV, RHS); in predicateLoopExits() 1875 BI->setCondition(NewCond); in predicateLoopExits()
|
| H A D | LoopPredication.cpp | 1230 Value *NewCond = B.CreateICmp(ICmpInst::ICMP_UGT, ECV, RHS); in predicateLoopExits() local 1234 NewCond = B.CreateFreeze(NewCond); in predicateLoopExits() 1236 widenWidenableBranch(WidenableBR, NewCond); in predicateLoopExits()
|
| H A D | GuardWidening.cpp | 97 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 D | LoopStrengthReduce.cpp | 2381 ICmpInst *NewCond = in OptimizeMax() local 2385 NewCond->setDebugLoc(Cond->getDebugLoc()); in OptimizeMax() 2386 Cond->replaceAllUsesWith(NewCond); in OptimizeMax() 2387 CondUse->setUser(NewCond); in OptimizeMax() 2393 return NewCond; in OptimizeMax()
|
| /llvm-project-15.0.7/llvm/unittests/Analysis/ |
| H A D | ScalarEvolutionTest.cpp | 798 auto *NewCond = Builder.CreateICmp( in TEST_F() local 800 Builder.CreateCondBr(NewCond, L, Post); in TEST_F() 887 auto *NewCond = Builder.CreateICmp( in TEST_F() local 889 Builder.CreateCondBr(NewCond, L, Post); in TEST_F()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | TargetLowering.cpp | 3776 ISD::CondCode NewCond; in optimizeSetCCOfSignedTruncationCheck() local 3778 NewCond = ISD::CondCode::SETEQ; in optimizeSetCCOfSignedTruncationCheck() 3780 NewCond = ISD::CondCode::SETEQ; in optimizeSetCCOfSignedTruncationCheck() 3784 NewCond = ISD::CondCode::SETNE; in optimizeSetCCOfSignedTruncationCheck() 3788 NewCond = ISD::CondCode::SETNE; in optimizeSetCCOfSignedTruncationCheck() 3806 NewCond = getSetCCInverse(NewCond, XVT); in optimizeSetCCOfSignedTruncationCheck() 4808 ISD::CondCode NewCond = Cond; in SimplifySetCC() local 4858 ISD::CondCode NewCond = ISD::SETCC_INVALID; in SimplifySetCC() local 4866 if (NewCond != ISD::SETCC_INVALID && in SimplifySetCC() 4888 if (NewCond != Cond && in SimplifySetCC() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/M68k/ |
| H A D | M68kISelLowering.cpp | 2039 if (SDValue NewCond = LowerSETCC(Cond, DAG)) in LowerSELECT() local 2040 Cond = NewCond; in LowerSELECT() 2274 if (SDValue NewCond = LowerSETCC(Cond, DAG)) in LowerBRCOND() local 2275 Cond = NewCond; in LowerBRCOND()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | SIInstrInfo.h | 132 Register NewCond = Register()) const;
|
| H A D | SIInstrInfo.cpp | 7152 Register NewCond) const { in addSCCDefUsersToVALUWorklist() 7170 MRI.replaceRegWith(DestReg, NewCond); in addSCCDefUsersToVALUWorklist() 7174 if (NewCond.isValid()) in addSCCDefUsersToVALUWorklist() 7175 MI.getOperand(SCCIdx).setReg(NewCond); in addSCCDefUsersToVALUWorklist()
|
| H A D | AMDGPUISelLowering.cpp | 3634 SDValue NewCond = DAG.getSetCC(SL, Cond.getValueType(), LHS, RHS, NewCC); in performSelectCombine() local 3635 return DAG.getNode(ISD::SELECT, SL, VT, NewCond, False, True); in performSelectCombine()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSelect.cpp | 2879 Value *NewCond = Builder.CreateFCmp(InvPred, Cmp0, Cmp1, in visitSelectInst() local 2881 Value *NewSel = Builder.CreateSelect(NewCond, FalseVal, TrueVal); in visitSelectInst()
|
| H A D | InstructionCombining.cpp | 3238 Value *NewCond = Builder.CreateTrunc(Cond, Ty, "trunc"); in visitSwitchInst() local 3244 return replaceOperand(SI, 0, NewCond); in visitSwitchInst()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/ |
| H A D | LoopVectorize.cpp | 9506 Value *NewCond = State.get(Cond, Part); in execute() local 9512 Value *Select = State.Builder.CreateSelect(NewCond, NewVecOp, IdenVec); in execute()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86InstrInfo.td | 3333 class CondCodeAlias<string Prefix,string Suffix, string OldCond, string NewCond, 3336 !strconcat(Prefix, NewCond, Suffix), VariantName>;
|
| H A D | X86ISelLowering.cpp | 25115 if (SDValue NewCond = LowerSETCC(Cond, DAG)) { in LowerSELECT() local 25116 Cond = NewCond; in LowerSELECT() 45023 SDValue NewCond = in combineSelect() local 45025 return DAG.getSelect(DL, VT, NewCond, RHS, LHS); in combineSelect()
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelLowering.cpp | 18374 auto NewCond = getInvertedCondCode(OldCond); in performSETCCCombine() local 18379 LHS.getOperand(1), DAG.getConstant(NewCond, DL, MVT::i32), in performSETCCCombine()
|