[clang] [llvm] [AMDGPU] Infer amdgpu-no-flat-scratch-init attribute in AMDGPUAttributor (PR #94647)
Jun Wang via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 4 16:59:17 PDT 2024
================
@@ -433,6 +433,13 @@ struct AAAMDAttributesFunction : public AAAMDAttributes {
indicatePessimisticFixpoint();
return;
}
+
+ for (Instruction &I : instructions(F)) {
+ if (isa<AllocaInst>(I) || isa<AddrSpaceCastInst>(I)) {
----------------
jwanggit86 wrote:
Thanks. This has been updated.
https://github.com/llvm/llvm-project/pull/94647
More information about the cfe-commits
mailing list