<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5730.11" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial><FONT face="Times New Roman">This is from 'early JIT 
tests' thread on comp.lang.misc.</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT face=Arial size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT face="Times New Roman">Given :-</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT face=Arial></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>int ltst(int 
x)</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>{<BR>int i, 
j;<BR><BR>j=0;<BR>for(i=0; i<x; i++)j++;<BR></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" 
size=3>return(j);<BR>}<BR><BR>This is from the online LLVM compiler. AND It does 
not seem to optimize it down !<BR><BR>; ModuleID = 
'/tmp/webcompile/_24843_0.bc'<BR>target datalayout = "e-p:32:32"<BR>target 
endian = little<BR>target pointersize = 32<BR>target triple = 
"i686-pc-linux-gnu"<BR><BR>implementation   ; Functions:<BR><BR>int 
%ltst(int %x) {<BR>entry:<BR>%x = cast int %x to uint ; <uint> 
[#uses=1]<BR>%tmp13 = setgt int %x, 0 ; <bool> [#uses=1]<BR>br bool 
%tmp13, label %bb, label %bb7<BR><BR>bb: 
                                                
; preds = %bb, %entry<BR>%indvar = phi uint [ 0, %entry ], [ %indvar.next, %bb ] 
; <uint> [#uses=2]<BR>%i.0.0 = cast uint %indvar to int 
                
; <int> [#uses=1]<BR>%tmp1 = add int %i.0.0, 1 
                
; <int> [#uses=1]<BR>%indvar.next = add uint %indvar, 
1            ; 
<uint> [#uses=2]<BR>%exitcond = seteq uint %indvar.next, %x ; <bool> 
[#uses=1]<BR>br bool %exitcond, label %bb7, label %bb<BR><BR>bb7: 
                                                
; preds = %bb, %entry<BR>%j.0.1 = phi int [ 0, %entry ], [ %tmp1, %bb ] ; 
<int> [#uses=1]<BR>ret int 
%j.0.1<BR>}<BR><BR>Aaron</FONT><BR></DIV></FONT></BODY></HTML>