mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Merge pull request #2072 from whitequark/cxxrtl-dont-purge
cxxrtl: get rid of -O5 aka `opt_clean -purge` optimization level
This commit is contained in:
		
						commit
						721040df76
					
				
					 1 changed files with 2 additions and 8 deletions
				
			
		| 
						 | 
					@ -2306,10 +2306,7 @@ struct CxxrtlBackend : public Backend {
 | 
				
			||||||
		log("        like -O3, and localize public wires not marked (*keep*) if possible.\n");
 | 
							log("        like -O3, and localize public wires not marked (*keep*) if possible.\n");
 | 
				
			||||||
		log("\n");
 | 
							log("\n");
 | 
				
			||||||
		log("    -O5\n");
 | 
							log("    -O5\n");
 | 
				
			||||||
		log("        like -O4, and run `opt_clean -purge` first.\n");
 | 
							log("        like -O4, and run `proc; flatten` first.\n");
 | 
				
			||||||
		log("\n");
 | 
					 | 
				
			||||||
		log("    -O6\n");
 | 
					 | 
				
			||||||
		log("        like -O5, and run `proc; flatten` first.\n");
 | 
					 | 
				
			||||||
		log("\n");
 | 
							log("\n");
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	void execute(std::ostream *&f, std::string filename, std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
 | 
						void execute(std::ostream *&f, std::string filename, std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
 | 
				
			||||||
| 
						 | 
					@ -2343,13 +2340,10 @@ struct CxxrtlBackend : public Backend {
 | 
				
			||||||
		extra_args(f, filename, args, argidx);
 | 
							extra_args(f, filename, args, argidx);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		switch (opt_level) {
 | 
							switch (opt_level) {
 | 
				
			||||||
			case 6:
 | 
								case 5:
 | 
				
			||||||
				worker.max_opt_level = true;
 | 
									worker.max_opt_level = true;
 | 
				
			||||||
				worker.run_proc_flatten = true;
 | 
									worker.run_proc_flatten = true;
 | 
				
			||||||
				YS_FALLTHROUGH
 | 
									YS_FALLTHROUGH
 | 
				
			||||||
			case 5:
 | 
					 | 
				
			||||||
				worker.run_opt_clean_purge = true;
 | 
					 | 
				
			||||||
				YS_FALLTHROUGH
 | 
					 | 
				
			||||||
			case 4:
 | 
								case 4:
 | 
				
			||||||
				worker.localize_public = true;
 | 
									worker.localize_public = true;
 | 
				
			||||||
				YS_FALLTHROUGH
 | 
									YS_FALLTHROUGH
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue