[PATCH] D78900: [HIP][AMDGPU] Enable structurizer workarounds

Sameer Sahasrabuddhe via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun May 10 21:55:22 PDT 2020


sameerds marked an inline comment as done.
sameerds added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/HIP.cpp:158
       Args.MakeArgString(Twine("-filetype=") + (OutputIsAsm ? "asm" : "obj")));
+  LlcArgs.push_back("--amdgpu-enable-structurizer-workarounds");
 
----------------
sameerds wrote:
> arsenm wrote:
> > We should just flip this in the backend. llc flags are not intended for frontends to set options
> Admittedly, this is a broken workflow. I am not even sure if Clang should be invoking llc at all. Ideally, we would want to eliminate this flag entirely. But flipping it is okay too if graphics workloads are sensitive to it. The priority right now is to enable the workarounds officially only for HIP and this seems to be most concise way to do it. We can flip the flag once other users of the AMDGPU are on board.
To clarify, we can flip it in the backend if graphcis workloads are **not** sensitive to it. But HIP needs this earlier.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78900/new/

https://reviews.llvm.org/D78900





More information about the llvm-commits mailing list