OSDN Git Service

[MCA] Add the ability to compute critical register dependency of an instruction.
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Thu, 23 May 2019 16:32:19 +0000 (16:32 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Thu, 23 May 2019 16:32:19 +0000 (16:32 +0000)
commit98569af305649d14ddd7350789adc3b88646d2fd
tree9b1102a7dc5fd2620348b30c067b9e7b723834cc
parentc76c82bdda6d8fd37d3816d1dcac8c474cbeb976
[MCA] Add the ability to compute critical register dependency of an instruction.

This patch adds the methods `getCriticalRegDep()` and `computeCriticalRegDep()` to
class InstructionBase.
The goal is to allow users to obtain information about the critical register
dependency that most affects the latency of an instruction.

These methods are currently unused. However, the long term plan is to use them
in order to allow the computation of a critical-path as part of the bottleneck
analysis. So, this is yet another step towards fixing PR37494.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361509 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MCA/Instruction.h
lib/MCA/Instruction.cpp