/external/llvm/lib/Transforms/Scalar/ |
D | SpeculativeExecution.cpp | 170 BasicBlock &Succ0 = *BI->getSuccessor(0); in runOnBasicBlock() local 173 if (&B == &Succ0 || &B == &Succ1 || &Succ0 == &Succ1) { in runOnBasicBlock() 178 if (Succ0.getSinglePredecessor() != nullptr && in runOnBasicBlock() 179 Succ0.getSingleSuccessor() == &Succ1) { in runOnBasicBlock() 180 return considerHoistingFromTo(Succ0, B); in runOnBasicBlock() 185 Succ1.getSingleSuccessor() == &Succ0) { in runOnBasicBlock() 191 if (Succ0.getSinglePredecessor() != nullptr && in runOnBasicBlock() 195 Succ1.getSingleSuccessor() == Succ0.getSingleSuccessor()) { in runOnBasicBlock() 199 return considerHoistingFromTo(Succ0, B); in runOnBasicBlock() 200 if (Succ0.size() == 1) // equivalent to if-else in runOnBasicBlock()
|
D | MergedLoadStoreMotion.cpp | 175 BasicBlock *Succ0 = BI->getSuccessor(0); in isDiamondHead() local 178 if (!Succ0->getSinglePredecessor()) in isDiamondHead() 183 BasicBlock *Succ0Succ = Succ0->getSingleSuccessor(); in isDiamondHead() 326 BasicBlock *Succ0 = BI->getSuccessor(0); in mergeLoads() local 331 for (BasicBlock::iterator BBI = Succ0->begin(), BBE = Succ0->end(); in mergeLoads() 338 if (!L0 || !L0->isSimple() || L0->isUsedOutsideOfBlock(Succ0)) in mergeLoads()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | SpeculativeExecution.cpp | 175 BasicBlock &Succ0 = *BI->getSuccessor(0); in runOnBasicBlock() local 178 if (&B == &Succ0 || &B == &Succ1 || &Succ0 == &Succ1) { in runOnBasicBlock() 183 if (Succ0.getSinglePredecessor() != nullptr && in runOnBasicBlock() 184 Succ0.getSingleSuccessor() == &Succ1) { in runOnBasicBlock() 185 return considerHoistingFromTo(Succ0, B); in runOnBasicBlock() 190 Succ1.getSingleSuccessor() == &Succ0) { in runOnBasicBlock() 196 if (Succ0.getSinglePredecessor() != nullptr && in runOnBasicBlock() 200 Succ1.getSingleSuccessor() == Succ0.getSingleSuccessor()) { in runOnBasicBlock() 204 return considerHoistingFromTo(Succ0, B); in runOnBasicBlock() 205 if (Succ0.size() == 1) // equivalent to if-else in runOnBasicBlock()
|
D | MergedLoadStoreMotion.cpp | 147 BasicBlock *Succ0 = BI->getSuccessor(0); in isDiamondHead() local 150 if (!Succ0->getSinglePredecessor()) in isDiamondHead() 155 BasicBlock *Succ0Succ = Succ0->getSingleSuccessor(); in isDiamondHead()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | SpeculativeExecution.cpp | 176 BasicBlock &Succ0 = *BI->getSuccessor(0); in runOnBasicBlock() local 179 if (&B == &Succ0 || &B == &Succ1 || &Succ0 == &Succ1) { in runOnBasicBlock() 184 if (Succ0.getSinglePredecessor() != nullptr && in runOnBasicBlock() 185 Succ0.getSingleSuccessor() == &Succ1) { in runOnBasicBlock() 186 return considerHoistingFromTo(Succ0, B); in runOnBasicBlock() 191 Succ1.getSingleSuccessor() == &Succ0) { in runOnBasicBlock() 197 if (Succ0.getSinglePredecessor() != nullptr && in runOnBasicBlock() 201 Succ1.getSingleSuccessor() == Succ0.getSingleSuccessor()) { in runOnBasicBlock() 205 return considerHoistingFromTo(Succ0, B); in runOnBasicBlock() 206 if (Succ0.size() == 1) // equivalent to if-else in runOnBasicBlock()
|
D | MergedLoadStoreMotion.cpp | 147 BasicBlock *Succ0 = BI->getSuccessor(0); in isDiamondHead() local 150 if (!Succ0->getSinglePredecessor()) in isDiamondHead() 155 BasicBlock *Succ0Succ = Succ0->getSingleSuccessor(); in isDiamondHead()
|
/external/llvm/lib/CodeGen/ |
D | EarlyIfConversion.cpp | 346 MachineBasicBlock *Succ0 = Head->succ_begin()[0]; in canConvertIf() local 350 if (Succ0->pred_size() != 1) in canConvertIf() 351 std::swap(Succ0, Succ1); in canConvertIf() 353 if (Succ0->pred_size() != 1 || Succ0->succ_size() != 1) in canConvertIf() 356 Tail = Succ0->succ_begin()[0]; in canConvertIf() 365 << " -> BB#" << Succ0->getNumber() in canConvertIf() 376 << " -> BB#" << Succ0->getNumber() in canConvertIf() 402 FBB = TBB == Succ0 ? Succ1 : Succ0; in canConvertIf()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | BasicBlockUtils.cpp | 1202 BasicBlock *Succ0 = Branch->getSuccessor(0); in redirectToHub() local 1204 Succ0 = Outgoing.count(Succ0) ? Succ0 : nullptr; in redirectToHub() 1208 assert(Succ0); 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() 1259 BasicBlock *Succ0; in convertToGuardPredicates() local 1261 std::tie(Condition, Succ0, Succ1) = in convertToGuardPredicates() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | EarlyIfConversion.cpp | 438 MachineBasicBlock *Succ0 = Head->succ_begin()[0]; in canConvertIf() local 442 if (Succ0->pred_size() != 1) in canConvertIf() 443 std::swap(Succ0, Succ1); in canConvertIf() 445 if (Succ0->pred_size() != 1 || Succ0->succ_size() != 1) in canConvertIf() 448 Tail = Succ0->succ_begin()[0]; in canConvertIf() 457 << printMBBReference(*Succ0) << "/" in canConvertIf() 468 << printMBBReference(*Succ0) << " -> " in canConvertIf() 502 FBB = TBB == Succ0 ? Succ1 : Succ0; in canConvertIf()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | EarlyIfConversion.cpp | 441 MachineBasicBlock *Succ0 = Head->succ_begin()[0]; in canConvertIf() local 445 if (Succ0->pred_size() != 1) in canConvertIf() 446 std::swap(Succ0, Succ1); in canConvertIf() 448 if (Succ0->pred_size() != 1 || Succ0->succ_size() != 1) in canConvertIf() 451 Tail = Succ0->succ_begin()[0]; in canConvertIf() 460 << printMBBReference(*Succ0) << "/" in canConvertIf() 471 << printMBBReference(*Succ0) << " -> " in canConvertIf() 505 FBB = TBB == Succ0 ? Succ1 : Succ0; in canConvertIf()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64ConditionalCompares.cpp | 439 MachineBasicBlock *Succ0 = Head->succ_begin()[0]; in canConvert() local 443 if (Succ0->pred_size() != 1) in canConvert() 444 std::swap(Succ0, Succ1); in canConvert() 447 if (Succ0->pred_size() != 1 || Succ0->succ_size() != 2) in canConvert() 450 CmpBB = Succ0; in canConvert()
|
/external/llvm-project/llvm/lib/Target/AArch64/ |
D | AArch64ConditionalCompares.cpp | 444 MachineBasicBlock *Succ0 = Head->succ_begin()[0]; in canConvert() local 448 if (Succ0->pred_size() != 1) in canConvert() 449 std::swap(Succ0, Succ1); in canConvert() 452 if (Succ0->pred_size() != 1 || Succ0->succ_size() != 2) in canConvert() 455 CmpBB = Succ0; in canConvert()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64ConditionalCompares.cpp | 444 MachineBasicBlock *Succ0 = Head->succ_begin()[0]; in canConvert() local 448 if (Succ0->pred_size() != 1) in canConvert() 449 std::swap(Succ0, Succ1); in canConvert() 452 if (Succ0->pred_size() != 1 || Succ0->succ_size() != 2) in canConvert() 455 CmpBB = Succ0; in canConvert()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | MustExecute.cpp | 546 const BasicBlock *Succ0 = Worklist[0]; in findForwardJoinPoint() local 548 const BasicBlock *Succ0UniqueSucc = Succ0->getUniqueSuccessor(); in findForwardJoinPoint() 557 JoinBB = Succ0; in findForwardJoinPoint() 558 } else if (Succ0 == Succ1UniqueSucc) { in findForwardJoinPoint() 561 JoinBB = Succ0; in findForwardJoinPoint()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | MustExecute.cpp | 553 const BasicBlock *Succ0 = Worklist[0]; in findForwardJoinPoint() local 555 const BasicBlock *Succ0UniqueSucc = Succ0->getUniqueSuccessor(); in findForwardJoinPoint() 564 JoinBB = Succ0; in findForwardJoinPoint() 565 } else if (Succ0 == Succ1UniqueSucc) { in findForwardJoinPoint() 568 JoinBB = Succ0; in findForwardJoinPoint()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUTargetTransformInfo.cpp | 121 BasicBlock *Succ0 = Br->getSuccessor(0); in getUnrollingPreferences() local 123 if ((L->contains(Succ0) && L->isLoopExiting(Succ0)) || in getUnrollingPreferences()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPUTargetTransformInfo.cpp | 157 BasicBlock *Succ0 = Br->getSuccessor(0); in getUnrollingPreferences() local 159 if ((L->contains(Succ0) && L->isLoopExiting(Succ0)) || in getUnrollingPreferences()
|