| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | FlattenCFG.cpp | 177 Value *PC = PBI->getCondition(); in FlattenParallelAndOr() 255 auto *CI = dyn_cast<CmpInst>(BI->getCondition()); in FlattenParallelAndOr() 284 Value *PC = PBI->getCondition(); in FlattenParallelAndOr() 293 Value *CC = PBI->getCondition(); in FlattenParallelAndOr() 417 Instruction *CInst2 = dyn_cast<Instruction>(DomBI2->getCondition()); in MergeIfRegion() 429 Instruction *CInst1 = dyn_cast<Instruction>(DomBI1->getCondition()); in MergeIfRegion() 486 assert(PBI->getCondition() == CInst2); in MergeIfRegion()
|
| H A D | GuardUtils.cpp | 75 CheckBI->setCondition(B.CreateAnd(CheckBI->getCondition(), WC, in makeGuardControlFlowExplicit() 101 Instruction *WCAnd = cast<Instruction>(WidenableBR->getCondition()); in widenWidenableBranch() 120 Instruction *WCAnd = cast<Instruction>(WidenableBR->getCondition()); in setWidenableBranchCond()
|
| H A D | SimplifyCFG.cpp | 771 CV = SI->getCondition(); in isValueEqualityComparison() 2733 Value *BrCond = BI->getCondition(); in SpeculativelyExecuteBB() 2992 Value *Cond = BI->getCondition(); in FoldCondBranchOnValueKnownInPredecessorImpl() 3842 ->getCondition(); in mergeConditionalStoreToAddress() 4054 if (PBI->getCondition() == BI->getCondition() && in SimplifyCondBranchToCondBranch() 4161 Value *BICond = BI->getCondition(); in SimplifyCondBranchToCondBranch() 4427 if (SI->getCondition() != V) in tryToSimplifyUncondBranchWithICmpInIt() 5199 Value *Sub = SI->getCondition(); in TurnSwitchRangeIntoICmp() 5269 Value *Cond = SI->getCondition(); in eliminateDeadSwitchCases() 6339 TableIndex = SI->getCondition(); in SwitchToLookupTable() [all …]
|
| H A D | CodeMoverUtils.cpp | 141 << *BI->getCondition() << "\" is true from " in collectControlConditions() 144 ControlCondition(BI->getCondition(), true)); in collectControlConditions() 147 << *BI->getCondition() << "\" is false from " in collectControlConditions() 150 ControlCondition(BI->getCondition(), false)); in collectControlConditions()
|
| H A D | MisExpect.cpp | 82 Ret = dyn_cast<Instruction>(B->getCondition()); in getInstCondition() 94 Ret = dyn_cast<Instruction>(S->getCondition()); in getInstCondition()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | GuardWidening.cpp | 81 static Value *getCondition(Instruction *I) { in getCondition() function 92 return cast<BranchInst>(I)->getCondition(); in getCondition() 265 widenCondCommon(getCondition(ToWiden), NewCondition, ToWiden, Result, in widenGuard() 317 assert(isa<ConstantInt>(getCondition(I)) && "Should be!"); in run() 337 if (isa<ConstantInt>(getCondition(Instr))) in eliminateInstrViaWidening() 374 LLVM_DEBUG(dbgs() << "Score between " << *getCondition(Instr) in eliminateInstrViaWidening() 375 << " and " << *getCondition(Candidate) << " is " in eliminateInstrViaWidening() 395 widenGuard(BestSoFar, getCondition(Instr), InvertCondition); in eliminateInstrViaWidening() 423 if (!isAvailableAt(getCondition(DominatedInstr), DominatingGuard)) in computeWideningScore() 434 if (isWideningCondProfitable(getCondition(DominatedInstr), in computeWideningScore() [all …]
|
| H A D | IndVarSimplify.cpp | 473 Cond = BI->getCondition(); in rewriteFirstIterationLoopExitValues() 475 Cond = SI->getCondition(); in rewriteFirstIterationLoopExitValues() 705 ICmpInst *ICmp = dyn_cast<ICmpInst>(BI->getCondition()); in isLoopExitTestBasedOn() 724 if (L->isLoopInvariant(BI->getCondition())) in needsLFTR() 1185 Value *OrigCond = BI->getCondition(); in linearFunctionTestReplace() 1293 auto *OldCond = BI->getCondition(); in replaceExitCond() 1303 auto *OldCond = BI->getCondition(); in foldExit() 1448 auto *ICmp = dyn_cast<ICmpInst>(BI->getCondition()); in canonicalizeExitCondition() 1494 auto *ICmp = dyn_cast<ICmpInst>(BI->getCondition()); in canonicalizeExitCondition() 1760 if (isa<Constant>(BI->getCondition())) in predicateLoopExits() [all …]
|
| H A D | SimpleLoopUnswitch.cpp | 462 Value *Cond = skipTrivialSelect(BI.getCondition()); in unswitchTrivialBranch() 684 Value *LoopCond = SI.getCondition(); in unswitchTrivialSwitch() 1012 if (isa<Constant>(SI->getCondition())) in unswitchAllTrivialConditions() 1231 ClonedConditionToErase = BI->getCondition(); in buildClonedLoopBlocks() 1233 ClonedConditionToErase = SI->getCondition(); in buildClonedLoopBlocks() 2087 Value *Cond = skipTrivialSelect(BI->getCondition()); in unswitchNontrivialInvariants() 2234 Value *Cond = skipTrivialSelect(BI->getCondition()); in unswitchNontrivialInvariants() 2255 auto Cond = SI->getCondition(); in unswitchNontrivialInvariants() 2762 if (!isa<Constant>(SI->getCondition()) && in unswitchBestCondition() 2773 Value *Cond = skipTrivialSelect(BI->getCondition()); in unswitchBestCondition() [all …]
|
| H A D | LowerExpectIntrinsic.cpp | 78 CallInst *CI = dyn_cast<CallInst>(SI.getCondition()); in handleSwitchExpect() 275 ICmpInst *CmpI = dyn_cast<ICmpInst>(BSI.getCondition()); in handleBrSelExpect() 279 CI = dyn_cast<CallInst>(BSI.getCondition()); in handleBrSelExpect()
|
| H A D | LoopBoundSplit.cpp | 215 ICmpInst *ICmp = cast<ICmpInst>(ExitingBI->getCondition()); in canSplitLoopBound() 260 if (L.isLoopInvariant(BI->getCondition())) in findSplitCandidate() 264 ICmpInst *ICmp = cast<ICmpInst>(BI->getCondition()); in findSplitCandidate()
|
| H A D | LoopPredication.cpp | 834 unsigned NumWidened = collectChecks(Checks, BI->getCondition(), in widenWidenableBranchGuardConditions() 844 auto *OldCond = BI->getCondition(); in widenWidenableBranchGuardConditions() 873 auto *ICI = dyn_cast<ICmpInst>(BI->getCondition()); in parseLoopLatchICmp() 1172 auto *IP = cast<Instruction>(WidenableBR->getCondition()); in predicateLoopExits() 1198 if (isa<Constant>(BI->getCondition())) in predicateLoopExits() 1238 Value *OldCond = BI->getCondition(); in predicateLoopExits()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | SparsePropagation.h | 304 getValueState(KeyInfo::getLatticeKeyFromValue(BI->getCondition())); in getFeasibleSuccessors() 307 KeyInfo::getLatticeKeyFromValue(BI->getCondition())); in getFeasibleSuccessors() 322 std::move(BCValue), BI->getCondition()->getType())); in getFeasibleSuccessors() 343 SCValue = getValueState(KeyInfo::getLatticeKeyFromValue(SI.getCondition())); in getFeasibleSuccessors() 346 KeyInfo::getLatticeKeyFromValue(SI.getCondition())); in getFeasibleSuccessors() 360 std::move(SCValue), SI.getCondition()->getType())); in getFeasibleSuccessors()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSelect.cpp | 276 Value *Cond = SI.getCondition(); in foldSelectOpOp() 694 Value *Cond = Sel.getCondition(); in foldSetClearBits() 733 auto *CondVal = SI.getCondition(); in foldSelectZeroOrMul() 1971 Value *Cond = Sel.getCondition(); in foldSelectExtConst() 2061 Value *Cond = Sel.getCondition(); in canonicalizeScalarSelectOfVecs() 2077 Value *Cond = Sel.getCondition(); in foldSelectCmpBitcasts() 2160 if (Select->getCondition() == SI.getCondition()) in foldSelectCmpXchg() 2243 Value *Cond = Sel.getCondition(); in foldSelectFunnelShift() 2268 Value *Cond = Sel.getCondition(); in foldSelectToCopysign() 2326 Value *Cond = Sel.getCondition(); in foldVectorSelect() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/ControlFlow/IR/ |
| H A D | ControlFlowOps.cpp | 213 if (matchPattern(condbr.getCondition(), m_NonZero())) { in matchAndRewrite() 219 if (matchPattern(condbr.getCondition(), m_Zero())) { in matchAndRewrite() 256 rewriter.replaceOpWithNewOp<CondBranchOp>(condbr, condbr.getCondition(), in matchAndRewrite() 298 Value condition = condbr.getCondition(); in matchAndRewrite() 343 if (!predBranch || condbr.getCondition() != predBranch.getCondition()) in matchAndRewrite() 398 llvm::make_early_inc_range(condbr.getCondition().getUses())) { in matchAndRewrite() 413 llvm::make_early_inc_range(condbr.getCondition().getUses())) { in matchAndRewrite()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/ObjCARC/ |
| H A D | ProvenanceAnalysis.cpp | 46 if (A->getCondition() == SB->getCondition()) in relatedSelect()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SCF/IR/ |
| H A D | SCF.cpp | 1391 p << " " << getCondition(); in print() 1573 auto cond = op.getCondition(); in matchAndRewrite() 1651 if (op.getCondition().getDefiningOp<arith::ConstantOp>()) in matchAndRewrite() 1773 op.getLoc(), op.getCondition(), in matchAndRewrite() 1782 opResult.replaceAllUsesWith(op.getCondition()); in matchAndRewrite() 1831 if (nextIf.getCondition() == prevIf.getCondition()) { in matchAndRewrite() 1838 if (notv.getLhs() == prevIf.getCondition() && in matchAndRewrite() 1847 if (notv.getLhs() == nextIf.getCondition() && in matchAndRewrite() 2046 loc, op.getCondition(), nestedIf.getCondition()); in matchAndRewrite() 2749 op.getLoc(), term.getCondition().getType(), in matchAndRewrite() [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | SelectOptimize.cpp | 322 assert(DefSI->getCondition() == SI->getCondition() && in getTrueOrFalseValue() 492 IB.CreateFreeze(SI->getCondition(), SI->getName() + ".frozen"); in convertProfitableSIGroups() 528 if (NSI && SI->getCondition() == NSI->getCondition()) { in collectSelectGroups() 897 if (auto *CI = dyn_cast<Instruction>(SI->getCondition())) in computeLoopCosts() 980 bool VectorCond = !SI->getCondition()->getType()->isIntegerTy(1); in isSelectKindSupported()
|
| H A D | HardwareLoops.cpp | 349 if (BI->isUnconditional() || !isa<ICmpInst>(BI->getCondition())) in CanGenerateTest() 354 auto ICmp = cast<ICmpInst>(BI->getCondition()); in CanGenerateTest() 481 Value *OldCond = ExitBranch->getCondition(); in InsertLoopDec() 524 Value *OldCond = ExitBranch->getCondition(); in UpdateBranch()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | ControlHeightReduction.cpp | 890 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, in checkScopeHoistable() 943 assert(checkHoistValue(Branch->getCondition(), InsertPoint, in checkScopeHoistable() 951 assert(checkHoistValue(SI->getCondition(), InsertPoint, DT, in checkScopeHoistable() 1020 ConditionValues.insert(BI->getCondition()); in getCHRConditionValuesForRegion() 1023 ConditionValues.insert(SI->getCondition()); in getCHRConditionValuesForRegion() 1482 hoistValue(BI->getCondition(), HoistPoint, R, Scope->HoistStopMap, in hoistScopeConditions() 1490 hoistValue(SI->getCondition(), HoistPoint, R, Scope->HoistStopMap, in hoistScopeConditions() 1640 Value *V = BI->getCondition(); in assertBranchOrSelectConditionHoisted() 1654 Value *V = SI->getCondition(); in assertBranchOrSelectConditionHoisted() 1882 Value *Cond = BI->getCondition(); in fixupBranch() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Conversion/ControlFlowToSPIRV/ |
| H A D | ControlFlowToSPIRV.cpp | 57 op, op.getCondition(), op.getTrueDest(), adaptor.getTrueDestOperands(), in matchAndRewrite()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | SIAnnotateControlFlow.cpp | 209 Value *Ret = CallInst::Create(If, Term->getCondition(), "", Term); in openIf() 273 Value *Cond = Term->getCondition(); in handleLoop() 367 PHINode *Phi = dyn_cast<PHINode>(Term->getCondition()); in runOnFunction()
|
| /llvm-project-15.0.7/mlir/include/mlir/TableGen/ |
| H A D | Predicate.h | 50 std::string getCondition() const;
|
| /llvm-project-15.0.7/mlir/lib/TableGen/ |
| H A D | Trait.cpp | 71 return pred.getCondition(); in getPredTemplate()
|
| /llvm-project-15.0.7/llvm/examples/IRTransforms/ |
| H A D | SimplifyCFG.cpp | 150 ConstantInt *CI = dyn_cast<ConstantInt>(BI->getCondition()); in eliminateCondBranches_v1() 186 ConstantInt *CI = dyn_cast<ConstantInt>(BI->getCondition()); in eliminateCondBranches_v2()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/SCFToControlFlow/ |
| H A D | SCFToControlFlow.cpp | 404 rewriter.create<cf::CondBranchOp>(loc, ifOp.getCondition(), thenBlock, in matchAndRewrite() 550 rewriter.replaceOpWithNewOp<cf::CondBranchOp>(condOp, condOp.getCondition(), in matchAndRewrite() 604 rewriter.replaceOpWithNewOp<cf::CondBranchOp>(condOp, condOp.getCondition(), in matchAndRewrite()
|