From 881f296d1a661c488aa9619c741fd1300e608765 Mon Sep 17 00:00:00 2001 From: Alex Light Date: Wed, 28 Jan 2026 11:16:38 -0800 Subject: [PATCH] Initialize profitability_guard_ in ResourceSharingPass constructor. The profitability_guard argument was not being used to initialize the corresponding member variable, leading to potential issues. This change ensures the member is properly set. PiperOrigin-RevId: 862316825 --- xls/passes/resource_sharing_pass.h | 1 + 1 file changed, 1 insertion(+) diff --git a/xls/passes/resource_sharing_pass.h b/xls/passes/resource_sharing_pass.h index 710ae7cde4..0f16ba3dd7 100644 --- a/xls/passes/resource_sharing_pass.h +++ b/xls/passes/resource_sharing_pass.h @@ -316,6 +316,7 @@ class ResourceSharingPass : public OptimizationFunctionBasePass { kDefaultMaxPathCountForEdgeInGeneralVisibilityAnalysis, int64_t max_path_count_for_bdd_engine = kDefaultMaxPathCountForBddEngine) : OptimizationFunctionBasePass(kName, "Resource Sharing"), + profitability_guard_(profitability_guard), config_(min_area_savings, max_delay_spread_squared, max_delay_increase, max_delay_increase_per_fold, max_edges_to_handle, max_path_count_for_edge_in_general_visibility_analysis,