@@ -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,7 @@ 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 ();
12061205 const double dbus = getBlock ()->getDbUnitsPerMicron ();
12071206 const int site_width = getRow ()->getSpacing ();
12081207
@@ -1351,8 +1350,7 @@ bool PlacerPadPlacer::padSpreading(
13511350std::map<odb::dbInst*, int > PlacerPadPlacer::padSpreading (
13521351 const std::map<odb::dbInst*, int >& initial_positions) const
13531352{
1354- const auto insts = getInsts ();
1355- const auto inst_widths = getInstWidths ();
1353+ const auto & inst_widths = getInstWidths ();
13561354
13571355 // Snap all positions to row index
13581356 std::map<odb::dbInst*, std::unique_ptr<InstAnchors>> positions;
0 commit comments