compiler.tree.propagation.transforms: tweak 2^ transform to fix performance regression in benchmark.beust2; introduced by 47d6507548
				
					
				
			
							parent
							
								
									cd1986a906
								
							
						
					
					
						commit
						64a37d2db6
					
				| 
						 | 
				
			
			@ -103,10 +103,7 @@ IN: compiler.tree.propagation.transforms
 | 
			
		|||
 | 
			
		||||
! Speeds up 2^
 | 
			
		||||
: 2^? ( #call -- ? )
 | 
			
		||||
    in-d>> first2 [ value-info ] bi@
 | 
			
		||||
    [ { [ literal>> 1 = ] [ class>> fixnum class<= ] } 1&& ]
 | 
			
		||||
    [ class>> fixnum class<= ]
 | 
			
		||||
    bi* and ;
 | 
			
		||||
    in-d>> first value-info literal>> 1 eq? ;
 | 
			
		||||
 | 
			
		||||
\ shift [
 | 
			
		||||
    2^? [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue