summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineTraceMetrics.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-07-27 23:58:36 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-07-27 23:58:36 +0000
commit1152202cc2f3d69411d764a25d9573d94f4263ba (patch)
tree58f678ff586926079b90eacb22fc5f6636c82b4c /llvm/lib/CodeGen/MachineTraceMetrics.h
parentcfc0935ed958e75d2d3d50730d57c8ce2178704f (diff)
downloadbcm5719-llvm-1152202cc2f3d69411d764a25d9573d94f4263ba.tar.gz
bcm5719-llvm-1152202cc2f3d69411d764a25d9573d94f4263ba.zip
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. llvm-svn: 160904
Diffstat (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.h')
-rw-r--r--llvm/lib/CodeGen/MachineTraceMetrics.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineTraceMetrics.h b/llvm/lib/CodeGen/MachineTraceMetrics.h
index 086d7eaebff..26136fa9ee9 100644
--- a/llvm/lib/CodeGen/MachineTraceMetrics.h
+++ b/llvm/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;
OpenPOWER on IntegriCloud