[llvm] [AMDGPU][Attributor] Stop inferring amdgpu-no-flat-scratch-init in sanitized functions. (PR #161319)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 30 02:19:49 PDT 2025
================
@@ -467,17 +465,19 @@ struct AAAMDAttributesFunction : public AAAMDAttributes {
void initialize(Attributor &A) override {
Function *F = getAssociatedFunction();
- // If the function requires the implicit arg pointer due to sanitizers,
- // assume it's needed even if explicitly marked as not requiring it.
- const bool NeedsHostcall = funcRequiresHostcallPtr(*F);
- if (NeedsHostcall) {
+ // If the function has sanitizer attributes, we cannot remove
+ // implicitarg_ptr, hostcall_ptr, or flat_scratch_init.
----------------
arsenm wrote:
Can you elaborate on why it requires this. Should have a fixme that flat_scratch_init should not be required
https://github.com/llvm/llvm-project/pull/161319
More information about the llvm-commits
mailing list