[llvm] 6adf352 - [AMDGPUAttributor][NFC] Make the debug output meaningful

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 29 09:18:47 PDT 2023


Author: Johannes Doerfert
Date: 2023-06-29T09:18:35-07:00
New Revision: 6adf352782840bda98d02454028ab0dc5a4df3bd

URL: https://github.com/llvm/llvm-project/commit/6adf352782840bda98d02454028ab0dc5a4df3bd
DIFF: https://github.com/llvm/llvm-project/commit/6adf352782840bda98d02454028ab0dc5a4df3bd.diff

LOG: [AMDGPUAttributor][NFC] Make the debug output meaningful

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp b/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
index 90c0e933ff8f5..018f5f8c4a822 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
@@ -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();
   }


        


More information about the llvm-commits mailing list