Home | History | Annotate | Download | only in AMDGPU

Lines Matching refs:BRANCH

256   /// BB with backward-edge could have move instructions after the branch
612 case AMDGPU::BRANCH:
772 // Remove unconditional branch instr.
1329 // new: headBlk => if () {initReg = 1; org trueBlk branch} else
1330 // {initReg = 0; org falseBlk branch }
1340 // XXX: We have an opportunity here to optimize the "branch into if" case
1341 // here. Branch into if looks like this:
1358 // 1. Insert MOV GPR0, 0 before the branch instruction in diamond_head.
1359 // 2. Insert MOV GPR0, 1 before the branch instruction in branch_from.
1360 // 3. Move the branch instruction from diamond_head into its own basic
1362 // 4. Add an unconditional branch from diamond_head to new_block
1363 // 5. Replace the branch instruction in branch_from with an unconditional
1364 // branch to new_block. If branch_from has multiple predecessors, then
1365 // we need to replace the True/False block in the branch
1367 // 6. Change the condition of the branch instruction in new_block from
1630 // if we've arrived here then we've already erased the branch instruction
1692 dbgs() << "migrateInstruction don't see branch instr\n" ;
1696 DEBUG(dbgs() << "migrateInstruction see branch instr: " << *BranchMI);
1728 DEBUG(dbgs() << "Old branch instr: " << *BranchMI << "\n";);
1737 // I saw two unconditional branch in one basic block in example
1741 DEBUG(dbgs() << "Removing uncond branch instr: " << *BranchMI);
1757 DEBUG(dbgs() << "Removing unneeded cond branch instr: " << *BranchMI);