Lines Matching refs:BranchMI
295 void mergeIfthenelseBlock(MachineInstr *BranchMI,
671 MachineInstr *BranchMI = getLoopendBlockBranchInstr(SrcMBB); in replaceInstrUseOfBlockWith() local
672 if (BranchMI && isCondBranch(BranchMI) && in replaceInstrUseOfBlockWith()
673 getTrueBranch(BranchMI) == OldMBB) in replaceInstrUseOfBlockWith()
674 setTrueBranch(BranchMI, NewBlk); in replaceInstrUseOfBlockWith()
967 MachineInstr *BranchMI = getNormalBlockBranchInstr(MBB); in ifPatternMatch() local
968 if (!BranchMI) in ifPatternMatch()
971 assert(isCondBranch(BranchMI)); in ifPatternMatch()
974 MachineBasicBlock *TrueMBB = getTrueBranch(BranchMI); in ifPatternMatch()
977 MachineBasicBlock *FalseMBB = getFalseBranch(MBB, BranchMI); in ifPatternMatch()
1030 mergeIfthenelseBlock(BranchMI, MBB, TrueMBB, FalseMBB, LandBlk); in ifPatternMatch()
1419 void AMDGPUCFGStructurizer::mergeIfthenelseBlock(MachineInstr *BranchMI, in mergeIfthenelseBlock() argument
1444 int OldOpcode = BranchMI->getOpcode(); in mergeIfthenelseBlock()
1445 DebugLoc BranchDL = BranchMI->getDebugLoc(); in mergeIfthenelseBlock()
1455 MachineBasicBlock::iterator I = BranchMI; in mergeIfthenelseBlock()
1480 BranchMI->eraseFromParent(); in mergeIfthenelseBlock()
1502 MachineInstr *BranchMI = getLoopendBlockBranchInstr(ExitingMBB); in mergeLoopbreakBlock() local
1503 assert(BranchMI && isCondBranch(BranchMI)); in mergeLoopbreakBlock()
1504 DebugLoc DL = BranchMI->getDebugLoc(); in mergeLoopbreakBlock()
1505 MachineBasicBlock *TrueBranch = getTrueBranch(BranchMI); in mergeLoopbreakBlock()
1506 MachineBasicBlock::iterator I = BranchMI; in mergeLoopbreakBlock()
1513 BranchMI->eraseFromParent(); in mergeLoopbreakBlock()
1610 MachineInstr *BranchMI = getNormalBlockBranchInstr(SrcMBB); in migrateInstruction() local
1611 if (!BranchMI) { in migrateInstruction()
1617 DEBUG(dbgs() << "migrateInstruction see branch instr: " << *BranchMI); in migrateInstruction()
1618 SpliceEnd = BranchMI; in migrateInstruction()
1641 MachineInstr *BranchMI = getLoopendBlockBranchInstr(LoopLatch); in normalizeInfiniteLoopExit() local
1643 if (!BranchMI || !isUncondBranch(BranchMI)) in normalizeInfiniteLoopExit()
1649 DEBUG(dbgs() << "Old branch instr: " << *BranchMI << "\n";); in normalizeInfiniteLoopExit()
1656 MachineInstr *BranchMI; in removeUnconditionalBranch() local
1660 while ((BranchMI = getLoopendBlockBranchInstr(MBB)) in removeUnconditionalBranch()
1661 && isUncondBranch(BranchMI)) { in removeUnconditionalBranch()
1662 DEBUG(dbgs() << "Removing uncond branch instr: " << *BranchMI); in removeUnconditionalBranch()
1663 BranchMI->eraseFromParent(); in removeUnconditionalBranch()
1676 MachineInstr *BranchMI = getNormalBlockBranchInstr(MBB); in removeRedundantConditionalBranch() local
1677 assert(BranchMI && isCondBranch(BranchMI)); in removeRedundantConditionalBranch()
1678 DEBUG(dbgs() << "Removing unneeded cond branch instr: " << *BranchMI); in removeRedundantConditionalBranch()
1679 BranchMI->eraseFromParent(); in removeRedundantConditionalBranch()