/external/llvm/lib/Transforms/Scalar/ |
D | SpeculativeExecution.cpp | 171 BasicBlock &Succ1 = *BI->getSuccessor(1); in runOnBasicBlock() local 173 if (&B == &Succ0 || &B == &Succ1 || &Succ0 == &Succ1) { in runOnBasicBlock() 179 Succ0.getSingleSuccessor() == &Succ1) { in runOnBasicBlock() 184 if (Succ1.getSinglePredecessor() != nullptr && in runOnBasicBlock() 185 Succ1.getSingleSuccessor() == &Succ0) { in runOnBasicBlock() 186 return considerHoistingFromTo(Succ1, B); in runOnBasicBlock() 192 Succ1.getSinglePredecessor() != nullptr && in runOnBasicBlock() 193 Succ1.getSingleSuccessor() != nullptr && in runOnBasicBlock() 194 Succ1.getSingleSuccessor() != &B && in runOnBasicBlock() 195 Succ1.getSingleSuccessor() == Succ0.getSingleSuccessor()) { in runOnBasicBlock() [all …]
|
D | MergedLoadStoreMotion.cpp | 176 BasicBlock *Succ1 = BI->getSuccessor(1); in isDiamondHead() local 180 if (!Succ1->getSinglePredecessor()) in isDiamondHead() 184 BasicBlock *Succ1Succ = Succ1->getSingleSuccessor(); in isDiamondHead() 327 BasicBlock *Succ1 = BI->getSuccessor(1); in mergeLoads() local 329 int Size1 = Succ1->size(); in mergeLoads() 344 if (LoadInst *L1 = canHoistFromBlock(Succ1, L0)) { in mergeLoads()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | SpeculativeExecution.cpp | 176 BasicBlock &Succ1 = *BI->getSuccessor(1); in runOnBasicBlock() local 178 if (&B == &Succ0 || &B == &Succ1 || &Succ0 == &Succ1) { in runOnBasicBlock() 184 Succ0.getSingleSuccessor() == &Succ1) { in runOnBasicBlock() 189 if (Succ1.getSinglePredecessor() != nullptr && in runOnBasicBlock() 190 Succ1.getSingleSuccessor() == &Succ0) { in runOnBasicBlock() 191 return considerHoistingFromTo(Succ1, B); in runOnBasicBlock() 197 Succ1.getSinglePredecessor() != nullptr && in runOnBasicBlock() 198 Succ1.getSingleSuccessor() != nullptr && in runOnBasicBlock() 199 Succ1.getSingleSuccessor() != &B && in runOnBasicBlock() 200 Succ1.getSingleSuccessor() == Succ0.getSingleSuccessor()) { in runOnBasicBlock() [all …]
|
D | MergedLoadStoreMotion.cpp | 148 BasicBlock *Succ1 = BI->getSuccessor(1); in isDiamondHead() local 152 if (!Succ1->getSinglePredecessor()) in isDiamondHead() 156 BasicBlock *Succ1Succ = Succ1->getSingleSuccessor(); in isDiamondHead()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | SpeculativeExecution.cpp | 177 BasicBlock &Succ1 = *BI->getSuccessor(1); in runOnBasicBlock() local 179 if (&B == &Succ0 || &B == &Succ1 || &Succ0 == &Succ1) { in runOnBasicBlock() 185 Succ0.getSingleSuccessor() == &Succ1) { in runOnBasicBlock() 190 if (Succ1.getSinglePredecessor() != nullptr && in runOnBasicBlock() 191 Succ1.getSingleSuccessor() == &Succ0) { in runOnBasicBlock() 192 return considerHoistingFromTo(Succ1, B); in runOnBasicBlock() 198 Succ1.getSinglePredecessor() != nullptr && in runOnBasicBlock() 199 Succ1.getSingleSuccessor() != nullptr && in runOnBasicBlock() 200 Succ1.getSingleSuccessor() != &B && in runOnBasicBlock() 201 Succ1.getSingleSuccessor() == Succ0.getSingleSuccessor()) { in runOnBasicBlock() [all …]
|
D | MergedLoadStoreMotion.cpp | 148 BasicBlock *Succ1 = BI->getSuccessor(1); in isDiamondHead() local 152 if (!Succ1->getSinglePredecessor()) in isDiamondHead() 156 BasicBlock *Succ1Succ = Succ1->getSingleSuccessor(); in isDiamondHead()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | BasicBlockUtils.cpp | 1203 BasicBlock *Succ1 = nullptr; in redirectToHub() local 1210 Succ1 = Branch->getSuccessor(1); in redirectToHub() 1211 Succ1 = Outgoing.count(Succ1) ? Succ1 : nullptr; in redirectToHub() 1212 assert(Succ0 || Succ1); in redirectToHub() 1213 if (Succ0 && !Succ1) { in redirectToHub() 1215 } else if (Succ1 && !Succ0) { in redirectToHub() 1223 assert(Succ0 || Succ1); in redirectToHub() 1224 return std::make_tuple(Condition, Succ0, Succ1); in redirectToHub() 1260 BasicBlock *Succ1; in convertToGuardPredicates() local 1261 std::tie(Condition, Succ0, Succ1) = in convertToGuardPredicates() [all …]
|
/external/llvm/lib/CodeGen/ |
D | EarlyIfConversion.cpp | 347 MachineBasicBlock *Succ1 = Head->succ_begin()[1]; in canConvertIf() local 351 std::swap(Succ0, Succ1); in canConvertIf() 359 if (Tail != Succ1) { in canConvertIf() 361 if (Succ1->pred_size() != 1 || Succ1->succ_size() != 1 || in canConvertIf() 362 Succ1->succ_begin()[0] != Tail) in canConvertIf() 366 << "/BB#" << Succ1->getNumber() in canConvertIf() 402 FBB = TBB == Succ0 ? Succ1 : Succ0; in canConvertIf()
|
D | MachineBlockPlacement.cpp | 527 const MachineBasicBlock *Succ1 = *BB->succ_begin(); in getLayoutSuccessorProbThreshold() local 529 if (Succ1->isSuccessor(Succ2) || Succ2->isSuccessor(Succ1)) { in getLayoutSuccessorProbThreshold()
|
/external/llvm-project/llvm/lib/Transforms/IPO/ |
D | PartialInlining.cpp | 582 auto GetReturnBlock = [&](BasicBlock *Succ1, BasicBlock *Succ2) { in computeOutliningInfo() argument 583 if (IsReturnBlock(Succ1)) in computeOutliningInfo() 584 return std::make_tuple(Succ1, Succ2); in computeOutliningInfo() 586 return std::make_tuple(Succ2, Succ1); in computeOutliningInfo() 592 auto GetCommonSucc = [&](BasicBlock *Succ1, BasicBlock *Succ2) { in computeOutliningInfo() argument 593 if (IsSuccessor(Succ1, Succ2)) in computeOutliningInfo() 594 return std::make_tuple(Succ1, Succ2); in computeOutliningInfo() 595 if (IsSuccessor(Succ2, Succ1)) in computeOutliningInfo() 596 return std::make_tuple(Succ2, Succ1); in computeOutliningInfo() 616 BasicBlock *Succ1 = *succ_begin(CurrEntry); in computeOutliningInfo() local [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | PartialInlining.cpp | 573 auto GetReturnBlock = [&](BasicBlock *Succ1, BasicBlock *Succ2) { in computeOutliningInfo() argument 574 if (IsReturnBlock(Succ1)) in computeOutliningInfo() 575 return std::make_tuple(Succ1, Succ2); in computeOutliningInfo() 577 return std::make_tuple(Succ2, Succ1); in computeOutliningInfo() 583 auto GetCommonSucc = [&](BasicBlock *Succ1, BasicBlock *Succ2) { in computeOutliningInfo() argument 584 if (IsSuccessor(Succ1, Succ2)) in computeOutliningInfo() 585 return std::make_tuple(Succ1, Succ2); in computeOutliningInfo() 586 if (IsSuccessor(Succ2, Succ1)) in computeOutliningInfo() 587 return std::make_tuple(Succ2, Succ1); in computeOutliningInfo() 607 BasicBlock *Succ1 = *succ_begin(CurrEntry); in computeOutliningInfo() local [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | EarlyIfConversion.cpp | 439 MachineBasicBlock *Succ1 = Head->succ_begin()[1]; in canConvertIf() local 443 std::swap(Succ0, Succ1); in canConvertIf() 451 if (Tail != Succ1) { in canConvertIf() 453 if (Succ1->pred_size() != 1 || Succ1->succ_size() != 1 || in canConvertIf() 454 Succ1->succ_begin()[0] != Tail) in canConvertIf() 458 << printMBBReference(*Succ1) << " -> " in canConvertIf() 502 FBB = TBB == Succ0 ? Succ1 : Succ0; in canConvertIf()
|
D | MachineBlockPlacement.cpp | 1044 MachineBasicBlock *Succ1 = BestA.Dest; in getBestTrellisSuccessor() local 1049 isProfitableToTailDup(BB, Succ2, MBPI->getEdgeProbability(BB, Succ1), in getBestTrellisSuccessor() 1315 const MachineBasicBlock *Succ1 = *BB->succ_begin(); in getLayoutSuccessorProbThreshold() local 1317 if (Succ1->isSuccessor(Succ2) || Succ2->isSuccessor(Succ1)) { in getLayoutSuccessorProbThreshold()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | EarlyIfConversion.cpp | 442 MachineBasicBlock *Succ1 = Head->succ_begin()[1]; in canConvertIf() local 446 std::swap(Succ0, Succ1); in canConvertIf() 454 if (Tail != Succ1) { in canConvertIf() 456 if (Succ1->pred_size() != 1 || Succ1->succ_size() != 1 || in canConvertIf() 457 Succ1->succ_begin()[0] != Tail) in canConvertIf() 461 << printMBBReference(*Succ1) << " -> " in canConvertIf() 505 FBB = TBB == Succ0 ? Succ1 : Succ0; in canConvertIf()
|
D | MachineBlockPlacement.cpp | 1077 MachineBasicBlock *Succ1 = BestA.Dest; in getBestTrellisSuccessor() local 1082 isProfitableToTailDup(BB, Succ2, MBPI->getEdgeProbability(BB, Succ1), in getBestTrellisSuccessor() 1350 const MachineBasicBlock *Succ1 = *BB->succ_begin(); in getLayoutSuccessorProbThreshold() local 1352 if (Succ1->isSuccessor(Succ2) || Succ2->isSuccessor(Succ1)) { in getLayoutSuccessorProbThreshold()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | MustExecute.cpp | 547 const BasicBlock *Succ1 = Worklist[1]; in findForwardJoinPoint() local 549 const BasicBlock *Succ1UniqueSucc = Succ1->getUniqueSuccessor(); in findForwardJoinPoint() 553 JoinBB = Succ1; in findForwardJoinPoint() 562 } else if (Succ1 == Succ0UniqueSucc) { in findForwardJoinPoint() 565 JoinBB = Succ1; in findForwardJoinPoint()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | MustExecute.cpp | 554 const BasicBlock *Succ1 = Worklist[1]; in findForwardJoinPoint() local 556 const BasicBlock *Succ1UniqueSucc = Succ1->getUniqueSuccessor(); in findForwardJoinPoint() 560 JoinBB = Succ1; in findForwardJoinPoint() 569 } else if (Succ1 == Succ0UniqueSucc) { in findForwardJoinPoint() 572 JoinBB = Succ1; in findForwardJoinPoint()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64ConditionalCompares.cpp | 440 MachineBasicBlock *Succ1 = Head->succ_begin()[1]; in canConvert() local 444 std::swap(Succ0, Succ1); in canConvert() 451 Tail = Succ1; in canConvert()
|
/external/llvm-project/llvm/lib/Target/AArch64/ |
D | AArch64ConditionalCompares.cpp | 445 MachineBasicBlock *Succ1 = Head->succ_begin()[1]; in canConvert() local 449 std::swap(Succ0, Succ1); in canConvert() 456 Tail = Succ1; in canConvert()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64ConditionalCompares.cpp | 445 MachineBasicBlock *Succ1 = Head->succ_begin()[1]; in canConvert() local 449 std::swap(Succ0, Succ1); in canConvert() 456 Tail = Succ1; in canConvert()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUTargetTransformInfo.cpp | 122 BasicBlock *Succ1 = Br->getSuccessor(1); in getUnrollingPreferences() local 124 (L->contains(Succ1) && L->isLoopExiting(Succ1))) in getUnrollingPreferences()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPUTargetTransformInfo.cpp | 158 BasicBlock *Succ1 = Br->getSuccessor(1); in getUnrollingPreferences() local 160 (L->contains(Succ1) && L->isLoopExiting(Succ1))) in getUnrollingPreferences()
|