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

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 10 09:50:11 PDT 2024


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

Should use checkForAllInstructions instead of manually looking at all instructions 

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


More information about the cfe-commits mailing list