mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 19:52:31 +00:00 
			
		
		
		
	simplify: Do not recursively simplify AST_CELL within AST_CELLARRAY
Otherwise the AST_CELL simplification uses the wrong celltype before the AST_CELLARRAY simplification has a chance to unroll it and change it to the $array celltype.
This commit is contained in:
		
							parent
							
								
									1f6ac926a4
								
							
						
					
					
						commit
						dd8b412833
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -1627,6 +1627,8 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage, | ||||||
| 			break; | 			break; | ||||||
| 		if (type == AST_GENBLOCK) | 		if (type == AST_GENBLOCK) | ||||||
| 			break; | 			break; | ||||||
|  | 		if (type == AST_CELLARRAY && children[i]->type == AST_CELL) | ||||||
|  | 			continue; | ||||||
| 		if (type == AST_BLOCK && !str.empty()) | 		if (type == AST_BLOCK && !str.empty()) | ||||||
| 			break; | 			break; | ||||||
| 		if (type == AST_PREFIX && i >= 1) | 		if (type == AST_PREFIX && i >= 1) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue