[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)
commit27b3b5d952c5981bb850832c86c797616ece8dd6
tree0200b81dcdadf62471909144c2a392f033c75fe8
parent87226a720293281f49a312fe8342d1fdd0aa38ca
[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.

llvm-svn: 361509
llvm/include/llvm/MCA/Instruction.h
llvm/lib/MCA/Instruction.cpp