[PATCH 2/2] R600/SI: Remove explicit m0 operand from s_sendmsg

Matt Arsenault Matthew.Arsenault at amd.com
Tue Apr 14 10:49:21 PDT 2015


On 04/14/2015 09:32 AM, Tom Stellard wrote:
> Instead add m0 as an implicit operand.  This allows us to avoid using
> the M0Reg register class and eliminates a number of unnecessary spills
> when using s_sendmsg instructions.  This impacts one shader in the
> shader-db:
>
> SGPRS: 48 -> 40 (-16.67 %)
> VGPRS: 112 -> 108 (-3.57 %)
> Code Size: 40132 -> 38796 (-3.33 %) bytes
> LDS: 0 -> 0 (0.00 %) blocks
> Scratch: 2048 -> 0 (-100.00 %) bytes per wave
> ---
>   lib/Target/R600/AMDGPUISelLowering.cpp |  1 +
>   lib/Target/R600/AMDGPUISelLowering.h   |  1 +
>   lib/Target/R600/AMDGPUInstrInfo.td     |  4 ++++
>   lib/Target/R600/SIISelLowering.cpp     | 12 +++++++++++-
>   lib/Target/R600/SIInstructions.td      | 12 +++++-------
>   5 files changed, 22 insertions(+), 8 deletions(-)
>
>

LGTM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150414/66397757/attachment.html>


More information about the llvm-commits mailing list