mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Merge pull request #4895 from YosysHQ/emil/fix-share-portbit-infinite-loop
share: fix infinite loop in find_terminal_bits on $mux loop
This commit is contained in:
		
						commit
						8bb24badf2
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -87,7 +87,7 @@ struct ShareWorker | ||||||
| 			queue_bits.clear(); | 			queue_bits.clear(); | ||||||
| 
 | 
 | ||||||
| 			for (auto &pbit : portbits) { | 			for (auto &pbit : portbits) { | ||||||
| 				if (pbit.cell->type == ID($mux) || pbit.cell->type == ID($pmux)) { | 				if ((pbit.cell->type == ID($mux) || pbit.cell->type == ID($pmux)) && visited_cells.count(pbit.cell) == 0) { | ||||||
| 					pool<RTLIL::SigBit> bits = modwalker.sigmap(pbit.cell->getPort(ID::S)).to_sigbit_pool(); | 					pool<RTLIL::SigBit> bits = modwalker.sigmap(pbit.cell->getPort(ID::S)).to_sigbit_pool(); | ||||||
| 					terminal_bits.insert(bits.begin(), bits.end()); | 					terminal_bits.insert(bits.begin(), bits.end()); | ||||||
| 					queue_bits.insert(bits.begin(), bits.end()); | 					queue_bits.insert(bits.begin(), bits.end()); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue