[PATCH 3/5] R600: Convert non global value const loads to global loads

Jan Vesely jan.vesely at rutgers.edu
Mon Jun 8 08:55:31 PDT 2015


On Tue, May 26, 2015 at 5:10 PM, Matt Arsenault <Matthew.Arsenault at amd.com>
wrote:

>
> On May 26, 2015, at 2:34 PM, Jan Vesely <jan.vesely at rutgers.edu> wrote:
>
> It is still needed, for now. the mesa side[0] uses different vtx buffers
> for rodata and user provided constant pointers. The user provided
> constant pointers point to Global AS, hence this conversion.
> The current status is that the global load instructions are used for
> constant loads (for those that did not get lowered into Private AS
> reinstantiation).
>
>
> I’m saying you can select this load to a different instruction, but keep
> the address space of the underlying value the same. This is basically what
> SI does, the address space is never changed but the instructions will be.
>

That was my original solution, but it felt ugly. I lost access to my dev
machine, so it might take some time before I post next version.
thanks for looking at the patches.

Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150608/2c8faf45/attachment.html>


More information about the llvm-commits mailing list