Home
last modified time | relevance | path

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

/freebsd/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 DBasicBlockUtils.cpp2202 Value *NewCond = PBI->getCondition(); in InvertBranch() local
2205 if (NewCond->hasOneUse() && isa<CmpInst>(NewCond)) { in InvertBranch()
2206 CmpInst *CI = cast<CmpInst>(NewCond); in InvertBranch()
2209 NewCond = Builder.CreateNot(NewCond, NewCond->getName() + ".not"); in InvertBranch()
2211 PBI->setCondition(NewCond); in InvertBranch()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DIndVarSimplify.cpp1181 static void replaceExitCond(BranchInst *BI, Value *NewCond, in replaceExitCond() argument
1185 << " with " << *NewCond << "\n"); in replaceExitCond()
1186 BI->setCondition(NewCond); in replaceExitCond()
1203 auto *NewCond = createFoldedExitCond(L, ExitingBB, IsTaken); in foldExit() local
1204 replaceExitCond(BI, NewCond, DeadInsts); in foldExit()
1409 auto *NewCond = *Replaced; in optimizeLoopExitWithUnknownExitCount() local
1410 if (auto *NCI = dyn_cast<Instruction>(NewCond)) { in optimizeLoopExitWithUnknownExitCount()
1414 << " with " << *NewCond << "\n"); in optimizeLoopExitWithUnknownExitCount()
1416 OldCond->replaceAllUsesWith(NewCond); in optimizeLoopExitWithUnknownExitCount()
1865 Value *NewCond; in predicateLoopExits() local
[all …]
H A DLoopPredication.cpp1162 Value *NewCond = B.CreateICmp(ICmpInst::ICMP_UGT, ECV, RHS); in predicateLoopExits()
1166 NewCond = B.CreateFreeze(NewCond); in predicateLoopExits()
1168 widenWidenableBranch(WidenableBR, NewCond); in predicateLoopExits()
1245 Value *NewCond = B.CreateICmp(ICmpInst::ICMP_UGT, ECV, RHS); predicateLoopExits() local
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 DLICM.cpp2475 Value *NewCond = Builder.CreateICmp(P, LHS1, NewRHS); in hoistMinMax() local
2476 NewCond->takeName(&I); in hoistMinMax()
2477 I.replaceAllUsesWith(NewCond); in hoistMinMax()
H A DLoopStrengthReduce.cpp2587 ICmpInst *NewCond = new ICmpInst(Cond->getIterator(), Pred, in OptimizeMax() local
2591 NewCond->setDebugLoc(Cond->getDebugLoc()); in OptimizeMax()
2592 Cond->replaceAllUsesWith(NewCond); in OptimizeMax()
2593 CondUse->setUser(NewCond); in OptimizeMax()
2599 return NewCond; in OptimizeMax()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DHardwareLoops.cpp548 Value *NewCond = CondBuilder.CreateCall(DecFunc, Ops); in InsertLoopDec() local
550 ExitBranch->setCondition(NewCond); in InsertLoopDec()
560 LLVM_DEBUG(dbgs() << "HWLoops: Inserted loop dec: " << *NewCond << "\n"); in InsertLoopDec()
593 Value *NewCond = in UpdateBranch() local
596 ExitBranch->setCondition(NewCond); in UpdateBranch()
H A DBranchFolding.cpp1114 SmallVector<MachineOperand, 4> NewCond(Cond); in TailMergeBlocks() local
1116 if (TII->reverseBranchCondition(NewCond)) in TailMergeBlocks()
1133 NewCond, dl); in TailMergeBlocks()
1578 SmallVector<MachineOperand, 4> NewCond(CurCond); in OptimizeBlock() local
1579 if (!TII->reverseBranchCondition(NewCond)) { in OptimizeBlock()
1582 TII->insertBranch(*MBB, CurFBB, CurTBB, NewCond, dl); in OptimizeBlock()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DGuardUtils.h35 void widenWidenableBranch(BranchInst *WidenableBR, Value *NewCond);
/freebsd/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/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp4103 ISD::CondCode NewCond; in optimizeSetCCOfSignedTruncationCheck() local
4105 NewCond = ISD::CondCode::SETEQ; in optimizeSetCCOfSignedTruncationCheck()
4107 NewCond = ISD::CondCode::SETEQ; in optimizeSetCCOfSignedTruncationCheck()
4111 NewCond = ISD::CondCode::SETNE; in optimizeSetCCOfSignedTruncationCheck()
4115 NewCond = ISD::CondCode::SETNE; in optimizeSetCCOfSignedTruncationCheck()
4133 NewCond = getSetCCInverse(NewCond, XVT); in optimizeSetCCOfSignedTruncationCheck()
4159 return DAG.getSetCC(DL, SCCVT, SExtInReg, X, NewCond); in optimizeSetCCOfSignedTruncationCheck()
5168 ISD::CondCode NewCond = Cond; in SimplifySetCC() local
5172 NewCond = (Cond == ISD::SETULE) ? ISD::SETULT : ISD::SETUGE; in SimplifySetCC()
5184 return DAG.getSetCC(dl, VT, Shift, CmpRHS, NewCond); in SimplifySetCC()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp3781 Value *NewCond = Op0; in visitSwitchInst() local
3785 NewCond = Builder.CreateAnd( in visitSwitchInst()
3794 return replaceOperand(SI, 0, NewCond); in visitSwitchInst()
3850 Value *NewCond = Builder.CreateTrunc(Cond, Ty, "trunc"); in visitSwitchInst() local
3856 return replaceOperand(SI, 0, NewCond); in visitSwitchInst()
H A DInstCombineSelect.cpp3670 Value *NewCond = Builder.CreateFCmp(InvPred, Cmp0, Cmp1, in visitSelectInst() local
3672 Value *NewSel = Builder.CreateSelect(NewCond, FalseVal, TrueVal); in visitSelectInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kISelLowering.cpp2269 if (SDValue NewCond = LowerSETCC(Cond, DAG)) in LowerSELECT() local
2270 Cond = NewCond; in LowerSELECT()
2471 if (SDValue NewCond = LowerSETCC(Cond, DAG)) in LowerBRCOND() local
2472 Cond = NewCond; in LowerBRCOND()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIInstrInfo.h169 Register NewCond = Register()) const;
H A DSIInstrInfo.cpp8383 Register NewCond) const { in addSCCDefUsersToVALUWorklist()
8401 MRI.replaceRegWith(DestReg, NewCond); in addSCCDefUsersToVALUWorklist()
8405 if (NewCond.isValid()) in addSCCDefUsersToVALUWorklist()
8406 MI.getOperand(SCCIdx).setReg(NewCond); in addSCCDefUsersToVALUWorklist()
H A DAMDGPUISelLowering.cpp4649 SDValue NewCond = DAG.getSetCC(SL, Cond.getValueType(), LHS, RHS, NewCC); in performSelectCombine() local
4650 return DAG.getNode(ISD::SELECT, SL, VT, NewCond, False, True); in performSelectCombine()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanRecipes.cpp1711 Value *NewCond = State.get(Cond, Part, State.VF.isScalar()); in execute() local
1720 Value *Select = State.Builder.CreateSelect(NewCond, NewVecOp, Iden); in execute()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstrAsmAlias.td369 class CondCodeAlias<string Prefix,string Suffix, string OldCond, string NewCond,
372 !strconcat(Prefix, NewCond, Suffix), VariantName>;
H A DX86ISelLowering.cpp24123 if (SDValue NewCond = LowerSETCC(Cond, DAG)) { in LowerSELECT() local
24124 Cond = NewCond; in LowerSELECT()
46396 SDValue NewCond = in combineSelect() local
46398 return DAG.getSelect(DL, VT, NewCond, RHS, LHS); in combineSelect()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64InstrInfo.cpp9750 Register NewCond = MRI.createVirtualRegister(&AArch64::GPR64commonRegClass); in createRemainingIterationsGreaterCondition() local
9752 .addReg(NewCond, RegState::Define) in createRemainingIterationsGreaterCondition()
9756 return NewCond; in createRemainingIterationsGreaterCondition()
H A DAArch64ISelLowering.cpp23897 auto NewCond = getInvertedCondCode(OldCond); in performSETCCCombine() local
23902 LHS.getOperand(1), DAG.getConstant(NewCond, DL, MVT::i32), in performSETCCCombine()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp15852 if (SDValue NewCond = tryDemorganOfBooleanCondition(LHS, DAG)) { in combine_CC()
15855 LHS = NewCond; in combine_CC()
16898 SDValue NewCond = Cond.getOperand(0); in PerformDAGCombine()
16899 APInt Mask = APInt::getBitsSetFrom(NewCond.getValueSizeInBits(), 1); in PerformDAGCombine()
16900 if (DAG.MaskedValueIsZero(NewCond, Mask)) in PerformDAGCombine()
16901 return DAG.getNode(InvOpc, SDLoc(N), N->getValueType(0), Val, NewCond); in PerformDAGCombine()
15849 if (SDValue NewCond = tryDemorganOfBooleanCondition(LHS, DAG)) { combine_CC() local
16895 SDValue NewCond = Cond.getOperand(0); PerformDAGCombine() local