mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	fix width detection of array querying function in case and case item expressions
I also removed the unnecessary shadowing of `width_hint` and `sign_hint` in the corresponding case in `simplify()`.
This commit is contained in:
		
							parent
							
								
									60c3ea367c
								
							
						
					
					
						commit
						7608985d2c
					
				
					 5 changed files with 50 additions and 2 deletions
				
			
		|  | @ -1389,8 +1389,6 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage, | |||
| 
 | ||||
| 	if (const_fold && type == AST_CASE) | ||||
| 	{ | ||||
| 		int width_hint; | ||||
| 		bool sign_hint; | ||||
| 		detectSignWidth(width_hint, sign_hint); | ||||
| 		while (children[0]->simplify(const_fold, at_zero, in_lvalue, stage, width_hint, sign_hint, in_param)) { } | ||||
| 		if (children[0]->type == AST_CONSTANT && children[0]->bits_only_01()) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue