Count processor resources individually in MachineTraceMetrics.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 2 Apr 2013 17:49:51 +0000 (17:49 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 2 Apr 2013 17:49:51 +0000 (17:49 +0000)
commit8396e130427999c57422e52af3913eb8182847e5
treee8a9130036428ccfa1754acaf0925569149d3168
parent146b8c212951b70906a1965125ee53448015e5d6
Count processor resources individually in MachineTraceMetrics.

The new instruction scheduling models provide information about the
number of cycles consumed on each processor resource. This makes it
possible to estimate ILP more accurately than simply counting
instructions / issue width.

The functions getResourceDepth() and getResourceLength() now identify
the limiting processor resource, and return a cycle count based on that.

This gives more precise resource information, particularly in traces
that use one resource a lot more than others.

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