[PATCH] D137066: [AMDGPU] Add amdgcn_s_buffer_load_imm intrinsic
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 2 15:32:31 PDT 2022
arsenm added a comment.
In D137066#3902128 <https://reviews.llvm.org/D137066#3902128>, @piotr wrote:
> In D137066#3902068 <https://reviews.llvm.org/D137066#3902068>, @nhaehnle wrote:
>
>> I think the question is really: what IR examples are there that could use scalar loads with immediate offsets but don't because instruction selection fails to extract the constant; and why does extracting the constant fail?
>
> All cases of isel not being able to extract the constant I looked at were due to the nodes being scattered over different basic blocks.
This is the kind of case that CodeGenPrepare works around for addressing mode matching. I'd rather add that sort of optimization rather than changing the IR by adding new intrinsics to workaround this
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137066/new/
https://reviews.llvm.org/D137066
More information about the llvm-commits
mailing list