> On Jul 6, 2017, at 19:02, Connor Abbott wrote:
>
> On Thu, Jul 6, 2017 at 6:36 PM, Matt Arsenault wrote:
>>
>> On Jul 6, 2017, at 18:31, Connor Abbott wrote:
>>
>> After looking into it some more, I think LLVM won't promote allocas to
>> registers at all when there are non-constant indices
On Thu, Jul 6, 2017 at 6:36 PM, Matt Arsenault wrote:
>
> On Jul 6, 2017, at 18:31, Connor Abbott wrote:
>
> After looking into it some more, I think LLVM won't promote allocas to
> registers at all when there are non-constant indices in the mix, and
> fixing it seems kinda involved. I guess a be
> On Jul 6, 2017, at 18:31, Connor Abbott wrote:
>
> After looking into it some more, I think LLVM won't promote allocas to
> registers at all when there are non-constant indices in the mix, and
> fixing it seems kinda involved. I guess a better solution for now
AMDGPUPromoteAlloca does this, b
On Thu, Jul 6, 2017 at 2:18 PM, Connor Abbott wrote:
> On Thu, Jul 6, 2017 at 2:01 PM, Bas Nieuwenhuizen
> wrote:
>> On Thu, Jul 6, 2017 at 9:48 PM, Connor Abbott
>> wrote:
>>> From: Connor Abbott
>>>
>>> The old way was very TGSI-based, and couldn't handle indirect
>>> dereferences at all. In
On Thu, Jul 6, 2017 at 2:01 PM, Bas Nieuwenhuizen
wrote:
> On Thu, Jul 6, 2017 at 9:48 PM, Connor Abbott
> wrote:
>> From: Connor Abbott
>>
>> The old way was very TGSI-based, and couldn't handle indirect
>> dereferences at all. Instead, pass through the type information NIR has
>
> I think the
On Thu, Jul 6, 2017 at 9:48 PM, Connor Abbott wrote:
> From: Connor Abbott
>
> The old way was very TGSI-based, and couldn't handle indirect
> dereferences at all. Instead, pass through the type information NIR has
I think the old code should handle indirect derefs just fine? See the
indir_index
From: Connor Abbott
The old way was very TGSI-based, and couldn't handle indirect
dereferences at all. Instead, pass through the type information NIR has
about local variables to LLVM, and translate NIR dereferences directly
into the equivalent GEP instructions in LLVM.
---
src/amd/common/ac_nir