Home
last modified time | relevance | path

Searched refs:PredMBB (Results 1 – 9 of 9) sorted by relevance

/freebsd-12.1/contrib/llvm/lib/Target/AArch64/
H A DAArch64RedundantCopyElimination.cpp156 MachineBasicBlock *PredMBB = *MBB->pred_begin(); in knownRegValInBlock() local
157 assert(PredMBB == CondBr.getParent() && in knownRegValInBlock()
159 if (CondBr == PredMBB->begin()) in knownRegValInBlock()
169 for (MachineInstr &PredI : make_range(std::next(RIt), PredMBB->rend())) { in knownRegValInBlock()
287 MachineBasicBlock *PredMBB = *MBB->pred_begin(); in optimizeBlock() local
288 if (PredMBB->succ_size() != 2) in optimizeBlock()
291 MachineBasicBlock::iterator CondBr = PredMBB->getLastNonDebugInstr(); in optimizeBlock()
292 if (CondBr == PredMBB->end()) in optimizeBlock()
352 if (PredI == PredMBB->begin()) in optimizeBlock()
365 } while (Itr != PredMBB->begin() && Itr->isTerminator()); in optimizeBlock()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/X86/
H A DX86CondBrFolding.cpp148 MachineBasicBlock *PredMBB = *MBB->pred_begin(); in findPath() local
150 while (PredMBB) { in findPath()
151 TargetMBBInfo *PredMBBInfo = getMBBInfo(PredMBB); in findPath()
170 BranchPath.push_back(PredMBB); in findPath()
178 if (PredMBB->pred_size() != 1 || !PredMBBInfo->CmpBrOnly) in findPath()
181 SaveMBB = PredMBB; in findPath()
182 PredMBB = *PredMBB->pred_begin(); in findPath()
294 MachineBasicBlock *PredMBB = BranchPath.front(); in optimizeCondBr() local
295 TargetMBBInfo *PredMBBInfo = getMBBInfo(PredMBB); in optimizeCondBr()
298 fixupModifiedCond(PredMBB); in optimizeCondBr()
[all …]
H A DX86FlagsCopyLowering.cpp455 for (auto *PredMBB : MBB->predecessors()) { in runOnMachineFunction() local
456 if (!Visited.insert(PredMBB).second) in runOnMachineFunction()
458 if (HasEFLAGSClobber(PredMBB->begin(), PredMBB->end())) in runOnMachineFunction()
461 Worklist.push_back(PredMBB); in runOnMachineFunction()
/freebsd-12.1/contrib/llvm/lib/Target/SystemZ/
H A DSystemZMachineScheduler.cpp42 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()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DRenameIndependentSubregs.cpp325 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()
H A DMachineSink.cpp709 auto *PredMBB = *MBB->pred_begin(); in SinkingPreventsImplicitNullCheck() local
710 auto *PredBB = PredMBB->getBasicBlock(); in SinkingPreventsImplicitNullCheck()
731 if (TII->analyzeBranchPredicate(*PredMBB, MBP, false)) in SinkingPreventsImplicitNullCheck()
H A DBranchFolding.cpp1363 MachineBasicBlock &PredMBB) { in copyDebugInfoToPredecessor() argument
1364 auto InsertBefore = PredMBB.getFirstTerminator(); in copyDebugInfoToPredecessor()
1367 TII->duplicate(PredMBB, InsertBefore, MI); in copyDebugInfoToPredecessor()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDILCFGStructurizer.cpp327 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()
/freebsd-12.1/contrib/llvm/lib/Target/PowerPC/
H A DPPCMIPeephole.cpp886 MachineBasicBlock *&PredMBB, in eligibleForCompareElimination() argument
935 PredMBB = TmpMBB; in eligibleForCompareElimination()
971 PredMBB = Pred1MBB; in eligibleForCompareElimination()