[PATCH] D130263: [AMDGPU][CodeGen] Support (soffset + offset) s_buffer_load's.
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 2 06:29:04 PDT 2022
foad added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp:4886
+ AMDGPU::getBaseWithConstantOffset(*MRI, Root.getReg());
+ if (!SOffset || MRI->getType(SOffset) != LLT::scalar(32) || Offset == 0)
+ return None;
----------------
Does anything go wrong if you remove the `Offset == 0` check?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130263/new/
https://reviews.llvm.org/D130263
More information about the llvm-commits
mailing list