- Reworked the transformation into ssa form and now I catch all unitialized variable uses. - Several more test cases - Bumped the version to 0.34 - Verified that -O2 the scc_transform now works. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@934 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
		
			
				
	
	
		
			25 lines
		
	
	
		
			351 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			351 B
		
	
	
	
		
			C
		
	
	
	
	
	
| static void main(void)
 | |
| {
 | |
| 	static const int sdivisor = 20;
 | |
| 	const int *pdivisor;
 | |
| 	unsigned rdpreamble;
 | |
| 	unsigned divisor;
 | |
| 	pdivisor = &sdivisor;
 | |
| 	divisor = *pdivisor;
 | |
| 	rdpreamble = 0;
 | |
| 
 | |
| 	if (divisor == 20) {
 | |
| 		rdpreamble = 18;
 | |
| 	}
 | |
| 	else {
 | |
| 		if (divisor == 15) {
 | |
| 			rdpreamble = 16;
 | |
| 		}
 | |
| 		else {
 | |
| 			if (divisor == 12) {
 | |
| 				rdpreamble = 15;
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| }
 |