From 341dbf266258dcbdb1e5e9f09c244b8ac271faaf Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Sat, 27 Sep 2014 09:08:36 -0400 Subject: arch: Use const StaticInstPtr references where possible This patch optimises the passing of StaticInstPtr by avoiding copying the reference-counting pointer. This avoids first incrementing and then decrementing the reference-counting pointer. --- src/cpu/exetrace.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cpu/exetrace.cc') diff --git a/src/cpu/exetrace.cc b/src/cpu/exetrace.cc index 9709466b7..9e08dca00 100644 --- a/src/cpu/exetrace.cc +++ b/src/cpu/exetrace.cc @@ -56,7 +56,7 @@ ExeTracerRecord::dumpTicks(ostream &outs) } void -Trace::ExeTracerRecord::traceInst(StaticInstPtr inst, bool ran) +Trace::ExeTracerRecord::traceInst(const StaticInstPtr &inst, bool ran) { ostream &outs = Trace::output(); -- cgit v1.2.3