mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Fixed mem2reg warning message
This commit is contained in:
		
							parent
							
								
									66ab88d7b0
								
							
						
					
					
						commit
						12ca6538a4
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -102,13 +102,13 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			verbose_activate:
 | 
								verbose_activate:
 | 
				
			||||||
				if (mem2reg_set.count(mem) == 0) {
 | 
									if (mem2reg_set.count(mem) == 0) {
 | 
				
			||||||
					log_warning("Replacing memory %s with list of registers.", mem->str.c_str());
 | 
										std::string message = stringf("Replacing memory %s with list of registers.", mem->str.c_str());
 | 
				
			||||||
					bool first_element = true;
 | 
										bool first_element = true;
 | 
				
			||||||
					for (auto &place : mem2reg_places[it.first]) {
 | 
										for (auto &place : mem2reg_places[it.first]) {
 | 
				
			||||||
						log("%s%s", first_element ? " See " : ", ", place.c_str());
 | 
											message += stringf("%s%s", first_element ? " See " : ", ", place.c_str());
 | 
				
			||||||
						first_element = false;
 | 
											first_element = false;
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
					log("\n");
 | 
										log_warning("%s\n", message.c_str());
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			silent_activate:
 | 
								silent_activate:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue