Add more trace query functions.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 10 Aug 2012 22:27:27 +0000 (22:27 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 10 Aug 2012 22:27:27 +0000 (22:27 +0000)
commit5413b68b1f59041a821287790dbc1ee2e272cf4e
tree2459575e7aef95b3bb18f476b2524a2872770b9a
parent6b951b25c35f739ee0a1b5a4615718220830817d
Add more trace query functions.

Trace::getResourceLength() computes the number of cycles required to
execute the trace when ignoring data dependencies. The number can be
compared to the critical path to estimate the trace ILP.

Trace::getPHIDepth() computes the data dependency depth of a PHI in a
trace successor that isn't necessarily part of the trace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161711 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineTraceMetrics.cpp
lib/CodeGen/MachineTraceMetrics.h