[PATCH] D139000: [AMDGPU] Clear bodies of function with incompatible features

Pierre van Houtryve via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 30 04:20:14 PST 2022


Pierre-vh added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp:217
+static cl::opt<bool> ClearIncompatibleFunctionsBodies(
+    "amdgpu-incompatible-features-clear-fns", cl::Hidden,
+    cl::desc("Enable deletion of function bodies when they"
----------------
foad wrote:
> Can you make the name of the option match the name of the pass? It seems like you have three variations in this patch:
> - clear incompatible functions
> - clear incompatible functions bodies
> - incompatible features clear fns
Matching the name of the pass is not possible because the pass already generates a CL Option I think, but I tried to make it more consistent.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D139000



More information about the llvm-commits mailing list