[PATCH] D101292: [AMDGPU] Restrict immediate scratch offsets
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 26 07:08:34 PDT 2021
foad added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIInstrInfo.cpp:7321
+ FlatVariant == SIInstrFlags::FlatScratch && Offset < 0 &&
+ (Offset % 4) != 0) {
+ return false;
----------------
Is 4 always the correct value to use here? Doesn't it depend on the size of the access?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101292/new/
https://reviews.llvm.org/D101292
More information about the llvm-commits
mailing list