[PATCH] D80364: [amdgpu] Teach load widening to handle non-DWORD aligned loads.
Michael Liao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 28 09:15:43 PDT 2020
hliao marked 2 inline comments as done.
hliao added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPULateCodeGenPrepare.cpp:32-36
+static cl::opt<bool>
+ WidenLoads("amdgpu-late-codegenprepare-widen-constant-loads",
+ cl::desc("Widen sub-dword constant address space loads in "
+ "AMDGPULateCodeGenPrepare"),
+ cl::ReallyHidden, cl::init(true));
----------------
arsenm wrote:
> If a separate pass is going to do the load widening, you can remove it from AMDGPUCodeGenPrepare
I could clean that after this.
================
Comment at: llvm/test/CodeGen/AMDGPU/llvm.amdgcn.dispatch.ptr.ll:59
+
declare noalias i8 addrspace(4)* @llvm.amdgcn.dispatch.ptr() #0
----------------
arsenm wrote:
> Missing align?
that align attribute will be added implicitly if there's no explicit overriding.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80364/new/
https://reviews.llvm.org/D80364
More information about the llvm-commits
mailing list