mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 19:22:31 +00:00 
			
		
		
		
	Remove some dead code
This commit is contained in:
		
							parent
							
								
									caa78388cd
								
							
						
					
					
						commit
						bc80426d45
					
				
					 1 changed files with 0 additions and 15 deletions
				
			
		|  | @ -1828,21 +1828,6 @@ skip_dynamic_range_lvalue_expansion:; | ||||||
| 				goto apply_newNode; | 				goto apply_newNode; | ||||||
| 			} | 			} | ||||||
| 
 | 
 | ||||||
| 			if (str == "\\$rose" || str == "\\$fell") |  | ||||||
| 			{ |  | ||||||
| 				if (GetSize(children) != 1) |  | ||||||
| 					log_error("System function %s got %d arguments, expected 1 at %s:%d.\n", |  | ||||||
| 							RTLIL::unescape_id(str).c_str(), int(children.size()), filename.c_str(), linenum); |  | ||||||
| 
 |  | ||||||
| 				if (!current_always_clocked) |  | ||||||
| 					log_error("System function %s is only allowed in clocked blocks at %s:%d.\n", |  | ||||||
| 							RTLIL::unescape_id(str).c_str(), filename.c_str(), linenum); |  | ||||||
| 
 |  | ||||||
| 				newNode = new AstNode(AST_EQ, children.at(0)->clone(), clone()); |  | ||||||
| 				newNode->children.at(1)->str = "\\$past"; |  | ||||||
| 				goto apply_newNode; |  | ||||||
| 			} |  | ||||||
| 
 |  | ||||||
| 			// $anyconst and $anyseq are mapped in AstNode::genRTLIL()
 | 			// $anyconst and $anyseq are mapped in AstNode::genRTLIL()
 | ||||||
| 			if (str == "\\$anyconst" || str == "\\$anyseq") { | 			if (str == "\\$anyconst" || str == "\\$anyseq") { | ||||||
| 				recursion_counter--; | 				recursion_counter--; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue