[AMDGPUAttributor][NFC] Make the debug output meaningful
authorJohannes Doerfert <johannes@jdoerfert.de>
Wed, 28 Jun 2023 00:20:21 +0000 (17:20 -0700)
committerJohannes Doerfert <johannes@jdoerfert.de>
Thu, 29 Jun 2023 16:18:35 +0000 (09:18 -0700)
llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp

index 90c0e93..018f5f8 100644 (file)
@@ -535,7 +535,8 @@ struct AAAMDAttributesFunction : public AAAMDAttributes {
     raw_string_ostream OS(Str);
     OS << "AMDInfo[";
     for (auto Attr : ImplicitAttrs)
-      OS << ' ' << Attr.second;
+      if (isAssumed(Attr.first))
+        OS << ' ' << Attr.second;
     OS << " ]";
     return OS.str();
   }