[Mesa-dev] [PATCH] R600: Do not fold vector inst
Tom Stellard
tom at stellard.net
Thu Jan 24 07:04:54 PST 2013
On Thu, Jan 24, 2013 at 01:15:19AM +0100, Vincent Lejeune wrote:
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
> ---
> lib/Target/R600/AMDILISelDAGToDAG.cpp | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/lib/Target/R600/AMDILISelDAGToDAG.cpp b/lib/Target/R600/AMDILISelDAGToDAG.cpp
> index 84223f6..b08d39f 100644
> --- a/lib/Target/R600/AMDILISelDAGToDAG.cpp
> +++ b/lib/Target/R600/AMDILISelDAGToDAG.cpp
> @@ -272,7 +272,8 @@ SDNode *AMDGPUDAGToDAGISel::Select(SDNode *N) {
> if (ST.device()->getGeneration() <= AMDGPUDeviceInfo::HD6XXX) {
> const R600InstrInfo *TII =
> 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())) {
> // Fold FNEG/FABS/CONST_ADDRESS
> // TODO: Isel can generate multiple MachineInst, we need to recursively
> --
> 1.8.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list