HomePhabricator

[MCA] Add the ability to compute critical register dependency of an instruction.
Audit Required27b3b5d952c5

Authored by andreadb on May 23 2019, 9:32 AM.

Description

[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

Details

Auditors
grosbach
Committed
andreadbMay 23 2019, 9:32 AM
Parents
rG87226a720293: [AsmPrinter] Treat a narrowing PtrToInt like Trunc
Branches
Unknown
Tags
Unknown