Compile-time option GLOBAL_OPT defined. If set, the resulting
peephole optimizer will be suitable for optimizing the output of the global optimizer. In particular, it doesn't change the register messages.
This commit is contained in:
		
							parent
							
								
									c97e1a7bc2
								
							
						
					
					
						commit
						2c4b17e464
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -93,9 +93,14 @@ outregs() { | ||||||
| incregusage(off) offset off; { | incregusage(off) offset off; { | ||||||
| 	register reg_p rp; | 	register reg_p rp; | ||||||
| 
 | 
 | ||||||
|  | #ifndef GLOBAL_OPT | ||||||
|  | 	/* If we're optimizing the output of the global optimizer
 | ||||||
|  | 	 * we must not change the count fields of the register messages. | ||||||
|  | 	 */ | ||||||
| 	for(rp=curpro.freg; rp != (reg_p) 0; rp=rp->r_next) | 	for(rp=curpro.freg; rp != (reg_p) 0; rp=rp->r_next) | ||||||
| 		if (rp->r_par[0]==off) { | 		if (rp->r_par[0]==off) { | ||||||
| 			rp->r_par[3]++; | 			rp->r_par[3]++; | ||||||
| 			return; | 			return; | ||||||
| 		} | 		} | ||||||
|  | #endif | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue