summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-02-22 03:12:42 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-02-22 03:12:42 +0000
commit0cc90a9147ccaef59cdb9caf4d68de990e5fdd05 (patch)
tree1bb8009b7156e1e0207a8ec607646e84c6375e06 /llvm/include
parent83d3476fd2603fbb81d8c8abe1d779911a6ad7b9 (diff)
downloadbcm5719-llvm-0cc90a9147ccaef59cdb9caf4d68de990e5fdd05.tar.gz
bcm5719-llvm-0cc90a9147ccaef59cdb9caf4d68de990e5fdd05.zip
Revert "CodeGen: Use references in MachineTraceMetrics::Trace, NFC"
This reverts commit r261509. I'm not sure how this compiled locally, but something was out of whack. llvm-svn: 261510
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/CodeGen/MachineTraceMetrics.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineTraceMetrics.h b/llvm/include/llvm/CodeGen/MachineTraceMetrics.h
index 06db17abaed..4cd3810afd4 100644
--- a/llvm/include/llvm/CodeGen/MachineTraceMetrics.h
+++ b/llvm/include/llvm/CodeGen/MachineTraceMetrics.h
@@ -276,24 +276,24 @@ public:
/// Return the depth and height of MI. The depth is only valid for
/// instructions in or above the trace center block. The height is only
/// valid for instructions in or below the trace center block.
- InstrCycles getInstrCycles(const MachineInstr &MI) const {
- return TE.Cycles.lookup(&MI);
+ InstrCycles getInstrCycles(const MachineInstr *MI) const {
+ return TE.Cycles.lookup(MI);
}
/// Return the slack of MI. This is the number of cycles MI can be delayed
/// before the critical path becomes longer.
/// MI must be an instruction in the trace center block.
- unsigned getInstrSlack(const MachineInstr &MI) const;
+ unsigned getInstrSlack(const MachineInstr *MI) const;
/// Return the Depth of a PHI instruction in a trace center block successor.
/// The PHI does not have to be part of the trace.
- unsigned getPHIDepth(const MachineInstr &PHI) const;
+ unsigned getPHIDepth(const MachineInstr *PHI) const;
/// A dependence is useful if the basic block of the defining instruction
/// is part of the trace of the user instruction. It is assumed that DefMI
/// dominates UseMI (see also isUsefulDominator).
- bool isDepInTrace(const MachineInstr &DefMI,
- const MachineInstr &UseMI) const;
+ bool isDepInTrace(const MachineInstr *DefMI,
+ const MachineInstr *UseMI) const;
};
/// A trace ensemble is a collection of traces selected using the same
OpenPOWER on IntegriCloud