mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-03 11:24:18 +00:00
R600: Add support for GROUP_BARRIER instruction
Reviewed-by: Vincent Lejeune<vljn at ovi.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185161 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -269,10 +269,14 @@ R600SchedStrategy::AluKind R600SchedStrategy::getAluKind(SUnit *SU) const {
|
||||
}
|
||||
|
||||
// Does the instruction take a whole IG ?
|
||||
// XXX: Is it possible to add a helper function in R600InstrInfo that can
|
||||
// be used here and in R600PacketizerList::isSoloInstruction() ?
|
||||
if(TII->isVector(*MI) ||
|
||||
TII->isCubeOp(MI->getOpcode()) ||
|
||||
TII->isReductionOp(MI->getOpcode()))
|
||||
TII->isReductionOp(MI->getOpcode()) ||
|
||||
MI->getOpcode() == AMDGPU::GROUP_BARRIER) {
|
||||
return AluT_XYZW;
|
||||
}
|
||||
|
||||
// Is the result already assigned to a channel ?
|
||||
unsigned DestSubReg = MI->getOperand(0).getSubReg();
|
||||
|
Reference in New Issue
Block a user