mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
R600: Do not fold modifier/litterals in vector inst
This fixes a couple of regressions on (probably not just) cayman NOTE: This is a candidate for the Mesa stable branch. Reviewed-by: Tom Stellard <thomas.stellard at amd.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175180 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6872de99b3
commit
df65b0fb51
@ -218,7 +218,9 @@ SDNode *AMDGPUDAGToDAGISel::Select(SDNode *N) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!TII->isALUInstr(Use->getMachineOpcode())) {
|
if (!TII->isALUInstr(Use->getMachineOpcode()) ||
|
||||||
|
(TII->get(Use->getMachineOpcode()).TSFlags &
|
||||||
|
R600_InstFlag::VECTOR)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -261,7 +263,8 @@ SDNode *AMDGPUDAGToDAGISel::Select(SDNode *N) {
|
|||||||
if (ST.device()->getGeneration() <= AMDGPUDeviceInfo::HD6XXX) {
|
if (ST.device()->getGeneration() <= AMDGPUDeviceInfo::HD6XXX) {
|
||||||
const R600InstrInfo *TII =
|
const R600InstrInfo *TII =
|
||||||
static_cast<const R600InstrInfo*>(TM.getInstrInfo());
|
static_cast<const R600InstrInfo*>(TM.getInstrInfo());
|
||||||
if (Result && Result->isMachineOpcode()
|
if (Result && Result->isMachineOpcode() &&
|
||||||
|
!(TII->get(Result->getMachineOpcode()).TSFlags & R600_InstFlag::VECTOR)
|
||||||
&& TII->isALUInstr(Result->getMachineOpcode())) {
|
&& TII->isALUInstr(Result->getMachineOpcode())) {
|
||||||
// Fold FNEG/FABS/CONST_ADDRESS
|
// Fold FNEG/FABS/CONST_ADDRESS
|
||||||
// TODO: Isel can generate multiple MachineInst, we need to recursively
|
// TODO: Isel can generate multiple MachineInst, we need to recursively
|
||||||
|
Loading…
x
Reference in New Issue
Block a user