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

            Bug ID: 39828
           Summary: [llvm-mca] Add a 'memory' event type to track
                    load/store queue usage.
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-mca
          Assignee: unassignedb...@nondot.org
          Reporter: andrea.dibia...@gmail.com
                CC: andrea.dibia...@gmail.com, llvm-bugs@lists.llvm.org,
                    matthew.da...@sony.com

Once https://reviews.llvm.org/D54957 is committed, class SchedulerStatistics
will start correctly tracking the load/store queue consumption in the LSUnit.

However, SchedulerStatistics will work under the assumption that load/store
queue
entries are reserved at 'instruction dispatched' stage, and released at
'instruction executed' stage. This currently matches the behavior of LSUnit.

That design will minimize the number of events generated by the
Dispatch/Execute stages, at the cost of doing extra bookkeeping in method
`onEvent()`. It also introduces a subtle (not-so-nice) dependency with how the
LSUnit works internally.

In future, we should add a new "memory queue" event type, so that
SchedulerStatistics will stop making assumptions on when/how queue entries are
allocated by the LSUnit.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to