[PATCH] D99352: [AMDGPU] ds_read_*/ds_write_* operations require strict alignment.
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 26 10:29:08 PDT 2021
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIISelLowering.cpp:1435
+ // ds_read/write_b128 require 16-byte alignment on gfx8 and older.
+ bool Aligned = Alignment >= Align(16);
if (IsFast)
----------------
hsmhsm wrote:
> arsenm wrote:
> > I don't like changing this function to lie and say it doesn't work when it does
> My understanding is that the function allowsMisalignedMemoryAccessesImpl() should check for the strict alignment requirment for ds_read/ds_write operations. I am now further updated this function accordingly.
You are making this stricter than the instructions really allow
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99352/new/
https://reviews.llvm.org/D99352
More information about the llvm-commits
mailing list