@@ -912,7 +912,7 @@ void PlacerPadPlacer::placeInstanceSimple(odb::dbInst* inst,
912912
913913std::map<odb::dbInst*, int > PlacerPadPlacer::initialPoolMapping () const
914914{
915- const auto insts = getInsts ();
915+ const auto & insts = getInsts ();
916916
917917 std::vector<float > position (insts.size ());
918918 for (int i = 0 ; i < insts.size (); i++) {
@@ -1076,7 +1076,7 @@ std::map<odb::dbInst*, int> PlacerPadPlacer::poolAdjacentViolators(
10761076 const std::map<odb::dbInst*, int >& initial_positions) const
10771077{
10781078 const double dbus = getBlock ()->getDbUnitsPerMicron ();
1079- const auto insts = getInsts ();
1079+ const auto & insts = getInsts ();
10801080 std::vector<float > weights (insts.size ());
10811081 std::fill (weights.begin (), weights.end (), 1.0 );
10821082
@@ -1201,8 +1201,8 @@ bool PlacerPadPlacer::padSpreading(
12011201{
12021202 bool has_violations = false ;
12031203
1204- const auto insts = getInsts ();
1205- const auto inst_widths = getInstWidths ();
1204+ const auto & insts = getInsts ();
1205+ const auto & inst_widths = getInstWidths ();
12061206 const double dbus = getBlock ()->getDbUnitsPerMicron ();
12071207 const int site_width = getRow ()->getSpacing ();
12081208
@@ -1351,8 +1351,8 @@ bool PlacerPadPlacer::padSpreading(
13511351std::map<odb::dbInst*, int > PlacerPadPlacer::padSpreading (
13521352 const std::map<odb::dbInst*, int >& initial_positions) const
13531353{
1354- const auto insts = getInsts ();
1355- const auto inst_widths = getInstWidths ();
1354+ const auto & insts = getInsts ();
1355+ const auto & inst_widths = getInstWidths ();
13561356
13571357 // Snap all positions to row index
13581358 std::map<odb::dbInst*, std::unique_ptr<InstAnchors>> positions;
0 commit comments