search for: parami

Displaying 4 results from an estimated 4 matches for "parami".

Did you mean: param
2009 Jan 06
2
[LLVMdev] LLVM Optmizer
The following C code : #include <stdio.h> #include <stdlib.h> int TESTE2( int parami , int paraml ,double paramd ) { int varx=0,vary; int nI =0; //varx= parami; if( parami > 0 ) { varx = parami; vary = varx + 1; } else { varx = vary + 1; vary = paraml; } varx = varx + parami + paraml; for( nI = 1 ; nI <= paraml; nI++) { varx = va...
2009 Jan 07
3
[LLVMdev] LLVM optmization
...d with the LLVM. We can see that the for loop in MSVC assembler is solved in the optimization pass more efficiently than that in LLVM. Is there an way to get a optimization result in LLVM like that of the MSVC? Manoel Teixeira #include <windows.h> #include <stdio.h> int TESTE ( int parami ,int paraml ,double paramd ) { int varx=0,vary=0; int nI =0; if( parami > 0 ) { varx = parami; vary = 0; } else { varx = 0; vary = paraml; } for( nI = 1 ; nI <= paraml; nI++) { varx = varx + parami + 1 ; vary = varx + nI; } return varx ; } u...
2009 Jan 14
0
[LLVMdev] LLVM optmization
Hi Manoel, > Hi, Duncan. > > Here an example : > #include <stdio.h> > #include <stdlib.h> > // > int TESTE ( int parami ,int paraml ) > { > int varx=0; > int nI =0; > > if( parami > 0 ) > { > varx = parami; > } > else > { > varx = 1; > } > > for( nI = 1 ; nI <= paraml; nI++) > { > varx = varx + parami+ 1; > }...
2009 Jan 08
0
[LLVMdev] LLVMdev Digest, Vol 55, Issue 16
...solved in the optimization pass more efficiently than that in LLVM. > > Is there an way to get a optimization result in LLVM like that of the MSVC? > > Manoel Teixeira > > > > #include <windows.h> > > #include <stdio.h> > > > > int TESTE ( int parami ,int paraml ,double paramd ) > > { > > int varx=0,vary=0; > > int nI =0; > > > > if( parami > 0 ) > > { > > varx = parami; > > vary = 0; > > } > > else > > { > > varx = 0; > > vary = pa...