Skip to content

Commit fa9fbf0

Browse files
committed
gpl: fix merge with master
Signed-off-by: Augusto Berndt <[email protected]>
1 parent 506bece commit fa9fbf0

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/gpl/src/routeBase.cpp

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -667,13 +667,16 @@ std::pair<bool, bool> RouteBase::routability(
667667
// rc not improvement detection -- (not improved the RC values 3 times in a
668668
// row)
669669
//
670-
if (nbVec_[0]->getTargetDensity() > rbVars_.maxDensity
671-
|| min_RC_violated_cnt_ >= max_routability_no_improvement_) {
672-
bool density_exceeded = nbVec_[0]->getTargetDensity() > rbVars_.maxDensity;
673-
bool congestion_not_improving
674-
= min_RC_violated_cnt_ >= max_routability_no_improvement_;
675-
676-
if (density_exceeded) {
670+
bool is_max_density_exceeded
671+
= nbVec_[0]->getTargetDensity() > rbVars_.maxDensity;
672+
bool congestion_not_improving
673+
= min_RC_violated_cnt_ >= max_routability_no_improvement_;
674+
bool is_max_routability_revert
675+
= routability_driven_revert_count >= max_routability_revert_;
676+
677+
if (is_max_density_exceeded || congestion_not_improving
678+
|| is_max_routability_revert) {
679+
if (is_max_density_exceeded) {
677680
log_->info(GPL,
678681
53,
679682
"Target density {:.4f} exceeds the maximum allowed {:.4f}.",

0 commit comments

Comments
 (0)