mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-02 19:24:25 +00:00
R600: Remove predicated_break inst
We were using two instructions for similar purpose : break and predicated break. Only predicated_break was emitted and it was lowered at R600ControlFlowFinalizer to JUMP;CF_BREAK;POP. This commit simplify the situation by making AMDILCFGStructurizer emit IF_PREDICATE;BREAK;ENDIF; instead of predicated_break (which is now removed). There is no functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187510 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -457,18 +457,11 @@ public:
|
||||
MI->eraseFromParent();
|
||||
break;
|
||||
}
|
||||
case AMDGPU::PREDICATED_BREAK: {
|
||||
CurrentStack--;
|
||||
CfCount += 3;
|
||||
BuildMI(MBB, MI, MBB.findDebugLoc(MI), getHWInstrDesc(CF_JUMP))
|
||||
.addImm(CfCount)
|
||||
.addImm(1);
|
||||
case AMDGPU::BREAK: {
|
||||
CfCount ++;
|
||||
MachineInstr *MIb = BuildMI(MBB, MI, MBB.findDebugLoc(MI),
|
||||
getHWInstrDesc(CF_LOOP_BREAK))
|
||||
.addImm(0);
|
||||
BuildMI(MBB, MI, MBB.findDebugLoc(MI), getHWInstrDesc(CF_POP))
|
||||
.addImm(CfCount)
|
||||
.addImm(1);
|
||||
LoopStack.back().second.insert(MIb);
|
||||
MI->eraseFromParent();
|
||||
break;
|
||||
|
Reference in New Issue
Block a user