/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64RedundantCopyElimination.cpp | 155 MachineBasicBlock *PredMBB = *MBB->pred_begin(); in knownRegValInBlock() local 156 assert(PredMBB == CondBr.getParent() && in knownRegValInBlock() 158 if (CondBr == PredMBB->begin()) in knownRegValInBlock() 168 for (MachineInstr &PredI : make_range(std::next(RIt), PredMBB->rend())) { in knownRegValInBlock() 286 MachineBasicBlock *PredMBB = *MBB->pred_begin(); in optimizeBlock() local 287 if (PredMBB->succ_size() != 2) in optimizeBlock() 290 MachineBasicBlock::iterator CondBr = PredMBB->getLastNonDebugInstr(); in optimizeBlock() 291 if (CondBr == PredMBB->end()) in optimizeBlock() 351 if (PredI == PredMBB->begin()) in optimizeBlock() 364 } while (Itr != PredMBB->begin() && Itr->isTerminator()); in optimizeBlock() [all …]
|
/external/llvm-project/llvm/lib/Target/AArch64/ |
D | AArch64RedundantCopyElimination.cpp | 155 MachineBasicBlock *PredMBB = *MBB->pred_begin(); in knownRegValInBlock() local 156 assert(PredMBB == CondBr.getParent() && in knownRegValInBlock() 158 if (CondBr == PredMBB->begin()) in knownRegValInBlock() 168 for (MachineInstr &PredI : make_range(std::next(RIt), PredMBB->rend())) { in knownRegValInBlock() 286 MachineBasicBlock *PredMBB = *MBB->pred_begin(); in optimizeBlock() local 287 if (PredMBB->succ_size() != 2) in optimizeBlock() 290 MachineBasicBlock::iterator CondBr = PredMBB->getLastNonDebugInstr(); in optimizeBlock() 291 if (CondBr == PredMBB->end()) in optimizeBlock() 351 if (PredI == PredMBB->begin()) in optimizeBlock() 364 } while (Itr != PredMBB->begin() && Itr->isTerminator()); in optimizeBlock() [all …]
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64RedundantCopyElimination.cpp | 89 MachineBasicBlock *PredMBB = *MBB->pred_begin(); in optimizeCopy() local 90 MachineBasicBlock::iterator CompBr = PredMBB->getLastNonDebugInstr(); in optimizeCopy() 91 if (CompBr == PredMBB->end() || PredMBB->succ_size() != 2) in optimizeCopy() 99 } while (CompBr != PredMBB->begin() && CompBr->isTerminator()); in optimizeCopy()
|
D | AArch64CollectLOH.cpp | 417 for (const MachineBasicBlock *PredMBB : MBB.predecessors()) { in reachingDefAlgorithm() local 418 SetOfMachineInstr &PredOutSet = getSet(Out, *PredMBB, CurReg, NbReg); in reachingDefAlgorithm()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86CondBrFolding.cpp | 143 MachineBasicBlock *PredMBB = *MBB->pred_begin(); in findPath() local 145 while (PredMBB) { in findPath() 146 TargetMBBInfo *PredMBBInfo = getMBBInfo(PredMBB); in findPath() 165 BranchPath.push_back(PredMBB); in findPath() 173 if (PredMBB->pred_size() != 1 || !PredMBBInfo->CmpBrOnly) in findPath() 176 SaveMBB = PredMBB; in findPath() 177 PredMBB = *PredMBB->pred_begin(); in findPath() 288 MachineBasicBlock *PredMBB = BranchPath.front(); in optimizeCondBr() local 289 TargetMBBInfo *PredMBBInfo = getMBBInfo(PredMBB); in optimizeCondBr() 292 fixupModifiedCond(PredMBB); in optimizeCondBr() [all …]
|
D | X86FlagsCopyLowering.cpp | 472 for (auto *PredMBB : MBB->predecessors()) { in runOnMachineFunction() local 473 if (!Visited.insert(PredMBB).second) in runOnMachineFunction() 475 if (HasEFLAGSClobber(PredMBB->begin(), PredMBB->end())) in runOnMachineFunction() 478 Worklist.push_back(PredMBB); in runOnMachineFunction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/ |
D | SystemZMachineScheduler.cpp | 42 MachineBasicBlock *PredMBB = nullptr; in getSingleSchedPred() local 44 PredMBB = *MBB->pred_begin(); in getSingleSchedPred() 51 PredMBB = (*I == MBB ? nullptr : *I); in getSingleSchedPred() 54 assert ((PredMBB == nullptr || !Loop || Loop->contains(PredMBB)) in getSingleSchedPred() 57 return PredMBB; in getSingleSchedPred()
|
/external/llvm-project/llvm/lib/Target/SystemZ/ |
D | SystemZMachineScheduler.cpp | 42 MachineBasicBlock *PredMBB = nullptr; in getSingleSchedPred() local 44 PredMBB = *MBB->pred_begin(); in getSingleSchedPred() 51 PredMBB = (*I == MBB ? nullptr : *I); in getSingleSchedPred() 54 assert ((PredMBB == nullptr || !Loop || Loop->contains(PredMBB)) in getSingleSchedPred() 57 return PredMBB; in getSingleSchedPred()
|
/external/llvm/lib/CodeGen/ |
D | RenameIndependentSubregs.cpp | 313 for (MachineBasicBlock *PredMBB : MBB.predecessors()) { in computeMainRangesFixFlags() 314 SlotIndex PredEnd = Indexes.getMBBEndIdx(PredMBB); in computeMainRangesFixFlags() 319 llvm::findPHICopyInsertPoint(PredMBB, &MBB, Reg); in computeMainRangesFixFlags() 321 MachineInstrBuilder ImpDef = BuildMI(*PredMBB, InsertPos, in computeMainRangesFixFlags()
|
D | MachineSink.cpp | 688 auto *PredMBB = *MBB->pred_begin(); in SinkingPreventsImplicitNullCheck() local 689 auto *PredBB = PredMBB->getBasicBlock(); in SinkingPreventsImplicitNullCheck() 707 if (TII->analyzeBranchPredicate(*PredMBB, MBP, false)) in SinkingPreventsImplicitNullCheck()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | RenameIndependentSubregs.cpp | 325 for (MachineBasicBlock *PredMBB : MBB.predecessors()) { in computeMainRangesFixFlags() 326 SlotIndex PredEnd = Indexes.getMBBEndIdx(PredMBB); in computeMainRangesFixFlags() 331 llvm::findPHICopyInsertPoint(PredMBB, &MBB, Reg); in computeMainRangesFixFlags() 333 MachineInstrBuilder ImpDef = BuildMI(*PredMBB, InsertPos, in computeMainRangesFixFlags()
|
D | MachineSink.cpp | 882 auto *PredMBB = *MBB->pred_begin(); in SinkingPreventsImplicitNullCheck() local 883 auto *PredBB = PredMBB->getBasicBlock(); in SinkingPreventsImplicitNullCheck() 905 if (TII->analyzeBranchPredicate(*PredMBB, MBP, false)) in SinkingPreventsImplicitNullCheck()
|
D | BranchFolding.cpp | 1267 MachineBasicBlock &PredMBB) { in copyDebugInfoToPredecessor() argument 1268 auto InsertBefore = PredMBB.getFirstTerminator(); in copyDebugInfoToPredecessor() 1271 TII->duplicate(PredMBB, InsertBefore, MI); in copyDebugInfoToPredecessor()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | RenameIndependentSubregs.cpp | 325 for (MachineBasicBlock *PredMBB : MBB.predecessors()) { in computeMainRangesFixFlags() 326 SlotIndex PredEnd = Indexes.getMBBEndIdx(PredMBB); in computeMainRangesFixFlags() 331 llvm::findPHICopyInsertPoint(PredMBB, &MBB, Reg); in computeMainRangesFixFlags() 333 MachineInstrBuilder ImpDef = BuildMI(*PredMBB, InsertPos, in computeMainRangesFixFlags()
|
D | MachineSink.cpp | 755 auto *PredMBB = *MBB->pred_begin(); in SinkingPreventsImplicitNullCheck() local 756 auto *PredBB = PredMBB->getBasicBlock(); in SinkingPreventsImplicitNullCheck() 777 if (TII->analyzeBranchPredicate(*PredMBB, MBP, false)) in SinkingPreventsImplicitNullCheck()
|
D | BranchFolding.cpp | 1311 MachineBasicBlock &PredMBB) { in copyDebugInfoToPredecessor() argument 1312 auto InsertBefore = PredMBB.getFirstTerminator(); in copyDebugInfoToPredecessor() 1315 TII->duplicate(PredMBB, InsertBefore, MI); in copyDebugInfoToPredecessor()
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86FlagsCopyLowering.cpp | 473 for (auto *PredMBB : MBB->predecessors()) { in runOnMachineFunction() local 474 if (!Visited.insert(PredMBB).second) in runOnMachineFunction() 476 if (HasEFLAGSClobber(PredMBB->begin(), PredMBB->end())) in runOnMachineFunction() 479 Worklist.push_back(PredMBB); in runOnMachineFunction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDILCFGStructurizer.cpp | 327 MachineBasicBlock *PredMBB); 1528 MachineBasicBlock *PredMBB) { in cloneBlockForPredecessor() argument 1529 assert(PredMBB->isSuccessor(MBB) && in cloneBlockForPredecessor() 1533 replaceInstrUseOfBlockWith(PredMBB, MBB, CloneMBB); in cloneBlockForPredecessor() 1536 PredMBB->replaceSuccessor(MBB, CloneMBB); in cloneBlockForPredecessor()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDILCFGStructurizer.cpp | 327 MachineBasicBlock *PredMBB); 1528 MachineBasicBlock *PredMBB) { in cloneBlockForPredecessor() argument 1529 assert(PredMBB->isSuccessor(MBB) && in cloneBlockForPredecessor() 1533 replaceInstrUseOfBlockWith(PredMBB, MBB, CloneMBB); in cloneBlockForPredecessor() 1536 PredMBB->replaceSuccessor(MBB, CloneMBB); in cloneBlockForPredecessor()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDILCFGStructurizer.cpp | 326 MachineBasicBlock *PredMBB); 1581 MachineBasicBlock *PredMBB) { in cloneBlockForPredecessor() argument 1582 assert(PredMBB->isSuccessor(MBB) && in cloneBlockForPredecessor() 1586 replaceInstrUseOfBlockWith(PredMBB, MBB, CloneMBB); in cloneBlockForPredecessor() 1589 PredMBB->replaceSuccessor(MBB, CloneMBB); in cloneBlockForPredecessor()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGISel.cpp | 1233 auto *PredMBB = FuncInfo->MBBMap[*PI]; in mergeIncomingSwiftErrors() local 1234 if (!FuncInfo->SwiftErrorMap.count(PredMBB) && in mergeIncomingSwiftErrors() 1235 !FuncInfo->SwiftErrorWorklist.count(PredMBB)) { in mergeIncomingSwiftErrors() 1240 FuncInfo->SwiftErrorWorklist[PredMBB].push_back(VReg); in mergeIncomingSwiftErrors() 1256 auto *PredMBB = FuncInfo->MBBMap[*PI]; in mergeIncomingSwiftErrors() local 1257 unsigned SwiftErrorReg = FuncInfo->SwiftErrorMap.count(PredMBB) ? in mergeIncomingSwiftErrors() 1258 FuncInfo->SwiftErrorMap[PredMBB][I] : in mergeIncomingSwiftErrors() 1259 FuncInfo->SwiftErrorWorklist[PredMBB][I]; in mergeIncomingSwiftErrors() 1261 .addMBB(PredMBB); in mergeIncomingSwiftErrors()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/ |
D | PPCMIPeephole.cpp | 1099 MachineBasicBlock *&PredMBB, in eligibleForCompareElimination() argument 1147 PredMBB = TmpMBB; in eligibleForCompareElimination() 1183 PredMBB = Pred1MBB; in eligibleForCompareElimination()
|
/external/llvm-project/llvm/lib/Target/PowerPC/ |
D | PPCMIPeephole.cpp | 1124 MachineBasicBlock *&PredMBB, in eligibleForCompareElimination() argument 1172 PredMBB = TmpMBB; in eligibleForCompareElimination() 1208 PredMBB = Pred1MBB; in eligibleForCompareElimination()
|