Lines Matching defs:DTU
242 DomTreeUpdater *DTU;
289 SimplifyCFGOpt(const TargetTransformInfo &TTI, DomTreeUpdater *DTU,
292 : TTI(TTI), DTU(DTU), DL(DL), LoopHeaders(LoopHeaders), Options(Opts) {
293 assert((!DTU || !DTU->hasPostDomTree()) &&
945 if (DTU)
946 DTU->applyUpdates(
965 if (DTU)
970 if (DTU)
975 if (DTU) {
980 DTU->applyUpdates(Updates);
1033 if (DTU) {
1038 DTU->applyUpdates(Updates);
1233 if (DTU && PredDefault != BB)
1310 if (DTU) {
1320 if (DTU && !SuccsOfPred.contains(NewSuccessor.first))
1360 if (DTU)
1367 if (DTU) {
1373 DTU->applyUpdates(Updates);
1409 if (!SplitBlockPredecessors(Succ, TI->getParent(), ".fold.split", DTU))
1893 if (DTU)
1897 if (DTU)
1902 if (DTU)
1903 DTU->applyUpdates(Updates);
2237 DomTreeUpdater *DTU) {
2440 if (!SplitBlockPredecessors(BB, UnconditionalPreds, ".sink.split", DTU))
2622 DomTreeUpdater *DTU) {
2626 if (DTU)
2663 if (DTU) {
2742 if (DTU)
2743 DTU->applyUpdates(Updates);
2766 static bool MergeCompatibleInvokes(BasicBlock *BB, DomTreeUpdater *DTU) {
2789 MergeCompatibleInvokesImpl(Invokes, DTU);
3305 FoldCondBranchOnValueKnownInPredecessorImpl(BranchInst *BI, DomTreeUpdater *DTU,
3364 BasicBlock *EdgeBB = SplitBlockPredecessors(BB, PredBBs, ".critedge", DTU);
3442 if (DTU) {
3446 DTU->applyUpdates(Updates);
3453 MergeBlockIntoPredecessor(EdgeBB, DTU);
3463 DomTreeUpdater *DTU,
3470 Result = FoldCondBranchOnValueKnownInPredecessorImpl(BI, DTU, DL, AC);
3479 DomTreeUpdater *DTU, const DataLayout &DL,
3663 if (DTU) {
3670 if (DTU)
3671 DTU->applyUpdates(Updates);
3756 DomTreeUpdater *DTU,
3834 if (DTU)
3835 DTU->applyUpdates({{DominatorTree::Insert, PredBlock, UniqueSucc},
3878 bool llvm::FoldBranchToCommonDest(BranchInst *BI, DomTreeUpdater *DTU,
3998 return performBranchToCommonDestFolding(BI, PBI, DTU, MSSAU, TTI);
4075 DomTreeUpdater *DTU, const DataLayout &DL, const TargetTransformInfo &TTI) {
4169 SplitBlockPredecessors(PostBB, {QFB, TruePred}, "condstore.split", DTU);
4203 /*BranchWeights=*/nullptr, DTU);
4221 DomTreeUpdater *DTU, const DataLayout &DL,
4325 InvertPCond, InvertQCond, DTU, DL, TTI);
4333 DomTreeUpdater *DTU) {
4364 if (DTU)
4365 DTU->applyUpdates(
4376 if (DTU)
4377 DTU->applyUpdates(
4390 DomTreeUpdater *DTU,
4416 if (tryWidenCondBranchToCondBranch(PBI, BI, DTU))
4422 if (MergeCondStores && mergeConditionalStores(PBI, BI, DTU, DL, TTI))
4505 if (DTU)
4534 if (DTU) {
4538 DTU->applyUpdates(Updates);
4682 if (DTU) {
4687 DTU->applyUpdates(Updates);
4859 if (DTU)
4868 if (DTU) {
4870 DTU->applyUpdates(Updates);
4938 BasicBlock *NewBB = SplitBlock(BB, BI, DTU, /*LI=*/nullptr,
4962 if (DTU)
5000 if (DTU)
5001 DTU->applyUpdates(Updates);
5087 removeUnwindEdge(Pred, DTU);
5098 if (DTU)
5099 DTU->applyUpdates({{DominatorTree::Delete, TrivialBB, BB}});
5104 DeleteDeadBlock(BB, DTU);
5123 removeUnwindEdge(Pred, DTU);
5128 DeleteDeadBlock(BB, DTU);
5132 static bool removeEmptyCleanup(CleanupReturnInst *RI, DomTreeUpdater *DTU) {
5224 if (DTU) {
5225 DTU->applyUpdates(Updates);
5228 removeUnwindEdge(PredBB, DTU);
5234 if (DTU) {
5241 if (DTU)
5242 DTU->applyUpdates(Updates);
5244 DeleteDeadBlock(BB, DTU);
5292 if (removeEmptyCleanup(RI, DTU))
5378 if (DTU)
5393 if (DTU && SI->getDefaultDest() != BB)
5397 if (DTU) {
5398 DTU->applyUpdates(Updates);
5401 auto *CI = cast<CallInst>(removeUnwindEdge(TI->getParent(), DTU));
5408 if (DTU) {
5409 DTU->applyUpdates(Updates);
5412 removeUnwindEdge(TI->getParent(), DTU);
5427 if (DTU)
5433 if (DTU) {
5445 if (DTU) {
5446 DTU->applyUpdates(Updates);
5451 removeUnwindEdge(EHPred, DTU);
5462 if (DTU)
5470 if (DTU)
5471 DTU->applyUpdates(Updates);
5475 DeleteDeadBlock(BB, DTU);
5494 DomTreeUpdater *DTU,
5506 if (DTU) {
5512 DTU->applyUpdates(Updates);
5633 createUnreachableSwitchDefault(SI, DTU);
5640 if (!HasDefault && DTU)
5641 DTU->applyUpdates({{DominatorTree::Delete, BB, UnreachableDefault}});
5648 static bool eliminateDeadSwitchCases(SwitchInst *SI, DomTreeUpdater *DTU,
5666 if (DTU) {
5675 if (DTU)
5695 createUnreachableSwitchDefault(SI, DTU);
5715 createUnreachableSwitchDefault(SI, DTU, /*RemoveOrigDefaultBlock*/ false);
5734 if (DTU) {
5739 DTU->applyUpdates(Updates);
6133 DomTreeUpdater *DTU) {
6139 if (DTU && !is_contained(predecessors(DestBB), SelectBB))
6156 if (DTU && RemovedSuccessors.insert(Succ).second)
6160 if (DTU)
6161 DTU->applyUpdates(Updates);
6168 DomTreeUpdater *DTU, const DataLayout &DL,
6187 removeSwitchAfterSelectFold(SI, PHI, SelectValue, Builder, DTU);
6644 DomTreeUpdater *DTU, const DataLayout &DL,
6832 if (DTU)
6841 if (DTU)
6880 if (DTU) {
6893 if (DTU)
6923 if (DTU)
6934 if (DTU && RemovedSuccessors.insert(Succ).second)
6939 if (DTU)
6940 DTU->applyUpdates(Updates);
7138 if (eliminateDeadSwitchCases(SI, DTU, Options.AC, DL))
7141 if (trySwitchToSelect(SI, Builder, DTU, DL, TTI))
7153 SwitchToLookupTable(SI, Builder, DTU, DL, TTI))
7189 if (DTU) {
7194 DTU->applyUpdates(Updates);
7240 BasicBlock *BB, DomTreeUpdater *DTU) {
7271 if (DTU) {
7286 if (DTU)
7293 if (DTU)
7294 DTU->applyUpdates(Updates);
7323 !NeedCanonicalLoop && TryToSimplifyUncondBranchFromEmptyBlock(BB, DTU))
7342 if (I->isTerminator() && TryToMergeLandingPad(LPad, BI, BB, DTU))
7351 FoldBranchToCommonDest(BI, DTU, /*MSSAU=*/nullptr, &TTI,
7388 static bool mergeNestedCondBranch(BranchInst *BI, DomTreeUpdater *DTU) {
7423 if (DTU) {
7430 DTU->applyUpdates(Updates);
7511 FoldBranchToCommonDest(BI, DTU, /*MSSAU=*/nullptr, &TTI,
7546 if (FoldCondBranchOnValueKnownInPredecessor(BI, DTU, DL, Options.AC))
7553 if (SimplifyCondBranchToCondBranch(PBI, BI, DTU, DL, TTI))
7561 if (mergeConditionalStores(PBI, BI, DTU, DL, TTI))
7565 if (mergeNestedCondBranch(BI, DTU))
7709 DomTreeUpdater *DTU,
7738 if (DTU)
7739 DTU->applyUpdates({{DominatorTree::Delete, Predecessor, BB}});
7759 if (DTU)
7760 DTU->applyUpdates(
7781 DeleteDeadBlock(BB, DTU);
7788 /*TLI=*/nullptr, DTU);
7794 if (removeUndefIntroducingPredecessor(BB, DTU, Options.AC))
7800 if (MergeBlockIntoPredecessor(BB, DTU))
7804 if (SinkCommonCodeFromPredecessors(BB, DTU) ||
7805 MergeCompatibleInvokes(BB, DTU)) {
7822 if (FoldTwoEntryPHINode(PN, TTI, DTU, DL,
7869 DomTreeUpdater *DTU, const SimplifyCFGOptions &Options,
7871 return SimplifyCFGOpt(TTI, DTU, BB->getDataLayout(), LoopHeaders,