[clang] [llvm] [AMDGPU] Infer amdgpu-no-flat-scratch-init attribute in AMDGPUAttributor (PR #94647)

Shilei Tian via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 10 13:20:11 PDT 2024


================
@@ -439,6 +439,26 @@ struct AAAMDAttributesFunction : public AAAMDAttributes {
       indicatePessimisticFixpoint();
       return;
     }
+
+    SmallPtrSet<const Constant *, 8> VisitedConsts;
+
+    for (Instruction &I : instructions(F)) {
----------------
shiltian wrote:

I don't think it is generally a good idea to put this logic into `initialize` unless it can directly changes the status of the AA.

https://github.com/llvm/llvm-project/pull/94647


More information about the cfe-commits mailing list