mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Avoid setIsInsideBundle in Target/R600.
This function is going to be removed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170064 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5d7802cecc
commit
4397294e78
@ -318,7 +318,8 @@ bool R600ExpandSpecialInstrsPass::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
MachineInstr *NewMI =
|
MachineInstr *NewMI =
|
||||||
TII->buildDefaultInstruction(MBB, I, Opcode, DstReg, Src0, Src1);
|
TII->buildDefaultInstruction(MBB, I, Opcode, DstReg, Src0, Src1);
|
||||||
|
|
||||||
NewMI->setIsInsideBundle(Chan != 0);
|
if (Chan != 0)
|
||||||
|
NewMI->bundleWithPred();
|
||||||
if (Mask) {
|
if (Mask) {
|
||||||
TII->addFlag(NewMI, 0, MO_FLAG_MASK);
|
TII->addFlag(NewMI, 0, MO_FLAG_MASK);
|
||||||
}
|
}
|
||||||
|
@ -89,15 +89,15 @@ bool SILowerLiteralConstantsPass::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
} else {
|
} else {
|
||||||
LoadLiteralOpcode = AMDGPU::SI_LOAD_LITERAL_F32;
|
LoadLiteralOpcode = AMDGPU::SI_LOAD_LITERAL_F32;
|
||||||
}
|
}
|
||||||
MachineInstr *First =
|
MIBundleBuilder Bundle(MBB, I);
|
||||||
BuildMI(MBB, I, MBB.findDebugLoc(I), TII->get(MovOpcode),
|
Bundle
|
||||||
|
.append(BuildMI(MF, MBB.findDebugLoc(I), TII->get(MovOpcode),
|
||||||
MI.getOperand(0).getReg())
|
MI.getOperand(0).getReg())
|
||||||
.addReg(AMDGPU::SI_LITERAL_CONSTANT);
|
.addReg(AMDGPU::SI_LITERAL_CONSTANT))
|
||||||
MachineInstr *Last =
|
.append(BuildMI(MF, MBB.findDebugLoc(I),
|
||||||
BuildMI(MBB, I, MBB.findDebugLoc(I), TII->get(LoadLiteralOpcode))
|
TII->get(LoadLiteralOpcode))
|
||||||
.addOperand(MI.getOperand(1));
|
.addOperand(MI.getOperand(1)));
|
||||||
Last->setIsInsideBundle();
|
llvm::finalizeBundle(MBB, Bundle.begin());
|
||||||
llvm::finalizeBundle(MBB, First, Last);
|
|
||||||
MI.eraseFromParent();
|
MI.eraseFromParent();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user