diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-07-27 23:58:36 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-07-27 23:58:36 +0000 |
commit | 0271a5fa29f73150fad891ca4c43a0a89a64b3bf (patch) | |
tree | 2ca8dedaf9361eb6bb393befaf5743eb368c599b /lib/CodeGen/MachineTraceMetrics.h | |
parent | c23b933d5f8be9b51a1d22e717c0311f65f87dcd (diff) |
Keep track of the head and tail of the trace through each block.
This makes it possible to quickly detect blocks that are outside the
trace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160904 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineTraceMetrics.h')
-rw-r--r-- | lib/CodeGen/MachineTraceMetrics.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineTraceMetrics.h b/lib/CodeGen/MachineTraceMetrics.h index 086d7eaebf..26136fa9ee 100644 --- a/lib/CodeGen/MachineTraceMetrics.h +++ b/lib/CodeGen/MachineTraceMetrics.h @@ -110,6 +110,12 @@ public: /// Trace successor, or NULL for the last block in the trace. const MachineBasicBlock *Succ; + /// The block number of the head of the trace. (When hasValidDepth()). + unsigned Head; + + /// The block number of the tail of the trace. (When hasValidHeight()). + unsigned Tail; + /// Accumulated number of instructions in the trace above this block. /// Does not include instructions in this block. unsigned InstrDepth; |