| /freebsd-14.2/contrib/llvm-project/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 | BasicBlockUtils.cpp | 2190 Value *NewCond = PBI->getCondition(); in InvertBranch() local 2193 if (NewCond->hasOneUse() && isa<CmpInst>(NewCond)) { in InvertBranch() 2194 CmpInst *CI = cast<CmpInst>(NewCond); in InvertBranch() 2197 NewCond = Builder.CreateNot(NewCond, NewCond->getName() + ".not"); in InvertBranch() 2199 PBI->setCondition(NewCond); in InvertBranch()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | IndVarSimplify.cpp | 1173 << " with " << *NewCond << "\n"); in replaceExitCond() 1174 BI->setCondition(NewCond); in replaceExitCond() 1192 replaceExitCond(BI, NewCond, DeadInsts); in foldExit() 1397 auto *NewCond = *Replaced; in optimizeLoopExitWithUnknownExitCount() local 1398 if (auto *NCI = dyn_cast<Instruction>(NewCond)) { in optimizeLoopExitWithUnknownExitCount() 1402 << " with " << *NewCond << "\n"); in optimizeLoopExitWithUnknownExitCount() 1404 OldCond->replaceAllUsesWith(NewCond); in optimizeLoopExitWithUnknownExitCount() 1853 Value *NewCond; in predicateLoopExits() local 1855 NewCond = L->contains(BI->getSuccessor(0)) ? in predicateLoopExits() 1869 NewCond = B.CreateICmp(Pred, ECV, RHS); in predicateLoopExits() [all …]
|
| H A D | LoopPredication.cpp | 1162 Value *NewCond = B.CreateICmp(ICmpInst::ICMP_UGT, ECV, RHS); in predicateLoopExits() local 1166 NewCond = B.CreateFreeze(NewCond); in predicateLoopExits() 1168 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 | LICM.cpp | 2460 Value *NewCond = Builder.CreateICmp(P, LHS1, NewRHS); in hoistMinMax() local 2461 NewCond->takeName(&I); in hoistMinMax() 2462 I.replaceAllUsesWith(NewCond); in hoistMinMax()
|
| 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()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | HardwareLoops.cpp | 543 Value *NewCond = CondBuilder.CreateCall(DecFunc, Ops); in InsertLoopDec() local 545 ExitBranch->setCondition(NewCond); in InsertLoopDec() 555 LLVM_DEBUG(dbgs() << "HWLoops: Inserted loop dec: " << *NewCond << "\n"); in InsertLoopDec() 585 Value *NewCond = in UpdateBranch() local 588 ExitBranch->setCondition(NewCond); in UpdateBranch()
|
| H A D | BranchFolding.cpp | 1105 SmallVector<MachineOperand, 4> NewCond(Cond); in TailMergeBlocks() local 1107 if (TII->reverseBranchCondition(NewCond)) in TailMergeBlocks() 1124 NewCond, dl); in TailMergeBlocks() 1567 SmallVector<MachineOperand, 4> NewCond(CurCond); in OptimizeBlock() local 1568 if (!TII->reverseBranchCondition(NewCond)) { in OptimizeBlock() 1571 TII->insertBranch(*MBB, CurFBB, CurTBB, NewCond, dl); in OptimizeBlock()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | GuardUtils.h | 35 void widenWidenableBranch(BranchInst *WidenableBR, Value *NewCond);
|
| /freebsd-14.2/contrib/llvm-project/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()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | TargetLowering.cpp | 4039 ISD::CondCode NewCond; in optimizeSetCCOfSignedTruncationCheck() local 4041 NewCond = ISD::CondCode::SETEQ; in optimizeSetCCOfSignedTruncationCheck() 4043 NewCond = ISD::CondCode::SETEQ; in optimizeSetCCOfSignedTruncationCheck() 4047 NewCond = ISD::CondCode::SETNE; in optimizeSetCCOfSignedTruncationCheck() 4051 NewCond = ISD::CondCode::SETNE; in optimizeSetCCOfSignedTruncationCheck() 4069 NewCond = getSetCCInverse(NewCond, XVT); in optimizeSetCCOfSignedTruncationCheck() 5094 ISD::CondCode NewCond = Cond; in SimplifySetCC() local 5159 ISD::CondCode NewCond = ISD::SETCC_INVALID; in SimplifySetCC() local 5167 if (NewCond != ISD::SETCC_INVALID && in SimplifySetCC() 5189 if (NewCond != Cond && in SimplifySetCC() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstructionCombining.cpp | 3321 Value *NewCond = Op0; in visitSwitchInst() local 3325 NewCond = Builder.CreateAnd( in visitSwitchInst() 3334 return replaceOperand(SI, 0, NewCond); in visitSwitchInst() 3380 Value *NewCond = Builder.CreateTrunc(Cond, Ty, "trunc"); in visitSwitchInst() local 3386 return replaceOperand(SI, 0, NewCond); in visitSwitchInst()
|
| H A D | InstCombineSelect.cpp | 3449 Value *NewCond = Builder.CreateFCmp(InvPred, Cmp0, Cmp1, in visitSelectInst() local 3451 Value *NewSel = Builder.CreateSelect(NewCond, FalseVal, TrueVal); in visitSelectInst()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/M68k/ |
| H A D | M68kISelLowering.cpp | 2268 if (SDValue NewCond = LowerSETCC(Cond, DAG)) in LowerSELECT() local 2269 Cond = NewCond; in LowerSELECT() 2470 if (SDValue NewCond = LowerSETCC(Cond, DAG)) in LowerBRCOND() local 2471 Cond = NewCond; in LowerBRCOND()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86InstrAsmAlias.td | 239 class CondCodeAlias<string Prefix,string Suffix, string OldCond, string NewCond, 242 !strconcat(Prefix, NewCond, Suffix), VariantName>;
|
| H A D | X86ISelLowering.cpp | 23911 if (SDValue NewCond = LowerSETCC(Cond, DAG)) { in LowerSELECT() local 23912 Cond = NewCond; in LowerSELECT() 45328 SDValue NewCond = in combineSelect() local 45330 return DAG.getSelect(DL, VT, NewCond, RHS, LHS); in combineSelect()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | SIInstrInfo.h | 169 Register NewCond = Register()) const;
|
| H A D | SIInstrInfo.cpp | 8260 Register NewCond) const { in addSCCDefUsersToVALUWorklist() 8278 MRI.replaceRegWith(DestReg, NewCond); in addSCCDefUsersToVALUWorklist() 8282 if (NewCond.isValid()) in addSCCDefUsersToVALUWorklist() 8283 MI.getOperand(SCCIdx).setReg(NewCond); in addSCCDefUsersToVALUWorklist()
|
| H A D | AMDGPUISelLowering.cpp | 4595 SDValue NewCond = DAG.getSetCC(SL, Cond.getValueType(), LHS, RHS, NewCC); in performSelectCombine() local 4596 return DAG.getNode(ISD::SELECT, SL, VT, NewCond, False, True); in performSelectCombine()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | LoopVectorize.cpp | 9366 Value *NewCond = State.VF.isVector() ? State.get(Cond, Part) in execute() local 9377 Value *Select = State.Builder.CreateSelect(NewCond, NewVecOp, Iden); in execute()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 14513 if (SDValue NewCond = tryDemorganOfBooleanCondition(LHS, DAG)) { in combine_CC() local 14516 LHS = NewCond; in combine_CC()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelLowering.cpp | 22463 auto NewCond = getInvertedCondCode(OldCond); in performSETCCCombine() local 22468 LHS.getOperand(1), DAG.getConstant(NewCond, DL, MVT::i32), in performSETCCCombine()
|