mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Fixed a performance bug in opt_reduce
This commit is contained in:
		
							parent
							
								
									60f3dc9923
								
							
						
					
					
						commit
						8fd1c269ac
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -368,8 +368,12 @@ struct OptReducePass : public Pass {
 | 
			
		|||
		for (auto &mod_it : design->modules_) {
 | 
			
		||||
			if (!design->selected(mod_it.second))
 | 
			
		||||
				continue;
 | 
			
		||||
			OptReduceWorker worker(design, mod_it.second, do_fine);
 | 
			
		||||
			total_count += worker.total_count;
 | 
			
		||||
			do {
 | 
			
		||||
				OptReduceWorker worker(design, mod_it.second, do_fine);
 | 
			
		||||
				total_count += worker.total_count;
 | 
			
		||||
				if (worker.total_count == 0)
 | 
			
		||||
					break;
 | 
			
		||||
			} while (1);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		log("Performed a total of %d changes.\n", total_count);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue