mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	opt_clean: Add missing assignments to opt.did_something.
This commit is contained in:
		
							parent
							
								
									2d436bc4f1
								
							
						
					
					
						commit
						85166633bc
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -406,6 +406,9 @@ bool rmunused_module_signals(RTLIL::Module *module, bool purge_mode, bool verbos | ||||||
| 	if (verbose && del_temp_wires_count) | 	if (verbose && del_temp_wires_count) | ||||||
| 		log_debug("  removed %d unused temporary wires.\n", del_temp_wires_count); | 		log_debug("  removed %d unused temporary wires.\n", del_temp_wires_count); | ||||||
| 
 | 
 | ||||||
|  | 	if (!del_wires_queue.empty()) | ||||||
|  | 		module->design->scratchpad_set_bool("opt.did_something", true); | ||||||
|  | 
 | ||||||
| 	return !del_wires_queue.empty(); | 	return !del_wires_queue.empty(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @ -476,6 +479,9 @@ bool rmunused_module_init(RTLIL::Module *module, bool purge_mode, bool verbose) | ||||||
| 	next_wire:; | 	next_wire:; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | 	if (did_something) | ||||||
|  | 		module->design->scratchpad_set_bool("opt.did_something", true); | ||||||
|  | 
 | ||||||
| 	return did_something; | 	return did_something; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue