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.
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
#include "base/intmath.hh"
|
||||
#include "cpu/timing_expr.hh"
|
||||
|
||||
TimingExprEvalContext::TimingExprEvalContext (StaticInstPtr inst_,
|
||||
TimingExprEvalContext::TimingExprEvalContext(const StaticInstPtr &inst_,
|
||||
ThreadContext *thread_,
|
||||
TimingExprLet *let_) :
|
||||
inst(inst_), thread(thread_), let(let_)
|
||||
|
||||
Reference in New Issue
Block a user