[MCA] Always check if scheduler resources are unavailable when reporting dispatch...
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Tue, 26 Feb 2019 14:19:00 +0000 (14:19 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Tue, 26 Feb 2019 14:19:00 +0000 (14:19 +0000)
commitc032e2ab7cda80a2b68345801162746eb48770c0
treee7dc94027a3d9f165509d2ac1770455eaf44d98a
parentb75bf8784eb83cf92e6670aba614c3968972960f
[MCA] Always check if scheduler resources are unavailable when reporting dispatch stalls.

Dispatch stall cycles may be associated to multiple dispatch stall events.
Before this patch, each stall cycle was associated with a single stall event.
This patch also improves a couple of code comments, and adds a helper method to
query the Scheduler for dispatch stalls.

llvm-svn: 354877
llvm/include/llvm/MCA/HardwareUnits/Scheduler.h
llvm/lib/MCA/HardwareUnits/Scheduler.cpp
llvm/lib/MCA/Stages/DispatchStage.cpp
llvm/test/tools/llvm-mca/X86/BtVer2/register-files-4.s