[PATCH] D75086: [AArch64][GlobalISel] Fixup <32b heterogeneous regbanks of G_PHIs just before selection.
Quentin Colombet via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 26 13:15:15 PST 2020
> On Feb 26, 2020, at 1:07 PM, Amara Emerson via Phabricator via llvm-commits <llvm-commits at lists.llvm.org> wrote:
>
> aemerson added a comment.
>
> In D75086#1894223 <https://reviews.llvm.org/D75086#1894223>, @qcolombet wrote:
>
>>> s16 operations, if legal, just get selected to gpr32 regclass instructions. E.g.
>>
>> %ld:gpr(s16) = G_LOAD ...
>> =>
>> %ld:gpr32 = LDR_16 ...
>>
>>
>> That's interesting, because that means you have inreg extension where you would have regular extension in the IR.
>> E.g.,
>>
>> s16 = G_LOAD
>> s32 = G_ZEXT s16
>>
>>
>> =>
>>
>> gpr32 = LDR_16
>> gpr32 = G_ZEXT gpr32
>>
>>
>> I would have expected that instead we would have combined loads with the related extension to from an extended load.
>
>
> Yes, on AArch64 all sub-32bit loads give a free ZEXT. We catch this case in the selector if for some reason we have a redundant ZEXT.
That sounds backward to me :).
>
>> Anyway, I guess this ship has sailed.
>>
>> LGTM.
>
>
>
>
> Repository:
> rG LLVM Github Monorepo
>
> CHANGES SINCE LAST ACTION
> https://reviews.llvm.org/D75086/new/
>
> https://reviews.llvm.org/D75086
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list