[PATCH] D139000: [AMDGPU] Clear bodies of function with incompatible features
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 30 04:14:22 PST 2022
foad added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUClearIncompatibleFunctions.cpp:80
+bool AMDGPUClearIncompatibleFunctions::runOnFunction(Function &F) {
+ if (skipFunction(F) || F.empty())
+ return false;
----------------
`isDeclaration()` is a bit more self-documenting than `empty()`.
================
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"
----------------
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
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