File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,12 @@ void PlacerCriticalities::update_criticalities(const SetupTimingInfo* timing_inf
37
37
if (INCR_UPDATE_CRITICALITIES) {
38
38
cluster_pins_with_modified_criticality_.clear ();
39
39
if (crit_exponent != last_crit_exponent_) {
40
- // Criticality exponent changed, must re-calculate *all* criticalties
41
- auto pins = clb_nlist_.pins ();
42
- cluster_pins_with_modified_criticality_.insert (pins.begin (), pins.end ());
40
+ // Criticality exponent changed, must re-calculate criticalities for *all* sink pins
41
+ for (ClusterNetId net_id : clb_nlist_.nets ()) {
42
+ for (ClusterPinId pin_id : clb_nlist_.net_sinks (net_id)) {
43
+ cluster_pins_with_modified_criticality_.insert (pin_id);
44
+ }
45
+ }
43
46
44
47
// Record new criticality exponent
45
48
last_crit_exponent_ = crit_exponent;
@@ -68,8 +71,11 @@ void PlacerCriticalities::update_criticalities(const SetupTimingInfo* timing_inf
68
71
}
69
72
} else {
70
73
// Non-incremental: all pins and nets need updating
71
- auto pins = clb_nlist_.pins ();
72
- cluster_pins_with_modified_criticality_.insert (pins.begin (), pins.end ());
74
+ for (ClusterNetId net_id : clb_nlist_.nets ()) {
75
+ for (ClusterPinId pin_id : clb_nlist_.net_sinks (net_id)) {
76
+ cluster_pins_with_modified_criticality_.insert (pin_id);
77
+ }
78
+ }
73
79
}
74
80
75
81
// Update the effected pins
You can’t perform that action at this time.
0 commit comments