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:
@@ -77,7 +77,7 @@ void
|
||||
SimPoint::profile(const std::pair<SimpleThread*, StaticInstPtr>& p)
|
||||
{
|
||||
SimpleThread* thread = p.first;
|
||||
StaticInstPtr inst = p.second;
|
||||
const StaticInstPtr &inst = p.second;
|
||||
|
||||
if (!currentBBVInstCount)
|
||||
currentBBV.first = thread->pcState().instAddr();
|
||||
|
||||
Reference in New Issue
Block a user