[llvm-bugs] [Bug 51132] New: [llvm-mca] Optionally add code comments to llvm-mca reports

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 19 03:12:45 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51132

            Bug ID: 51132
           Summary: [llvm-mca] Optionally add code comments to llvm-mca
                    reports
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-mca
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm-dev at redking.me.uk
                CC: andrea.dibiagio at gmail.com, llvm-bugs at lists.llvm.org,
                    matthew.davis at sony.com

https://llvm.godbolt.org/z/8Po4eeccq

Under some circumstances it'd be useful if llvm-mca could annotate standard
assembly code comments to the report. We can see these from clang asm output
(although they then get stripped by llvm-mca), but when we're analyzing raw asm
or gcc/msvc code then not everyone can perform shuffle decodes in their
heads.....

Shuffle decodes are the most useful to me, but I see no reason why they
shouldn't work with all comments. But it should be an opt-in feature as in many
cases it's just extra noise.

Not sure about json output - should the comment be put in a separate field?

Instruction Info:
[1]: #uOps
[2]: Latency
[3]: RThroughput
[4]: MayLoad
[5]: MayStore
[6]: HasSideEffects (U)

[1]    [2]    [3]    [4]    [5]    [6]    Instructions:
 1      1     0.50                        pshufd $0, %xmm0, %xmm0 ##
xmm0[0,0,0,0]


Resource pressure by instruction:
[0]    [1]    [2]    [3]    [4]    [5]    [6]    [7]    [8]    [9]    [10]  
[11]   [12]   [13]   Instructions:
 -      -      -      -      -     0.50   0.50    -      -      -      -    
0.50   0.50    -     pshufd $0, %xmm0, %xmm0 ## xmm0[0,0,0,0]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210719/8d948fd9/attachment.html>


More information about the llvm-bugs mailing list