Displaying 5 results from an estimated 5 matches for "init_board".
2005 Feb 22
0
[LLVMdev] Area for improvement
....
Jeff Cohen wrote:
> I noticed that fourinarow is one of the programs in which LLVM is much
> slower than GCC, so I decided to take a look and see why that is so.
> The program has many loops that look like this:
>
> #define ROWS 6
> #define COLS 7
>
> void init_board(char b[COLS][ROWS+1])
> {
> int i,j;
>
> for (i=0;i<COLS;i++)
> for (j=0;j<ROWS;j++)
> b[i][j]='.';
>
> for (i=0;i<COLS;i++)
> b[i][ROWS]=0;
> }
>
> This genera...
2005 Feb 22
5
[LLVMdev] Area for improvement
I noticed that fourinarow is one of the programs in which LLVM is much
slower than GCC, so I decided to take a look and see why that is so.
The program has many loops that look like this:
#define ROWS 6
#define COLS 7
void init_board(char b[COLS][ROWS+1])
{
int i,j;
for (i=0;i<COLS;i++)
for (j=0;j<ROWS;j++)
b[i][j]='.';
for (i=0;i<COLS;i++)
b[i][ROWS]=0;
}
This generates the following X86 code:
.text
.align...
2005 Feb 22
0
[LLVMdev] Area for improvement
...Feb 2005, Jeff Cohen wrote:
> I noticed that fourinarow is one of the programs in which LLVM is much slower
> than GCC, so I decided to take a look and see why that is so. The program
> has many loops that look like this:
>
> #define ROWS 6
> #define COLS 7
>
> void init_board(char b[COLS][ROWS+1])
> {
> int i,j;
>
> for (i=0;i<COLS;i++)
> for (j=0;j<ROWS;j++)
> b[i][j]='.';
> for (i=0;i<COLS;i++)
> b[i][ROWS]=0;
> }
>
> This generates the following X86 c...
2005 Feb 22
2
[LLVMdev] Area for improvement
...> I noticed that fourinarow is one of the programs in which LLVM is
>> much slower than GCC, so I decided to take a look and see why that is
>> so. The program has many loops that look like this:
>>
>> #define ROWS 6
>> #define COLS 7
>>
>> void init_board(char b[COLS][ROWS+1])
>> {
>> int i,j;
>>
>> for (i=0;i<COLS;i++)
>> for (j=0;j<ROWS;j++)
>> b[i][j]='.';
>> for (i=0;i<COLS;i++)
>> b[i][ROWS]=0;
>> }
>>...
2005 Feb 22
0
[LLVMdev] Area for improvement
...is one of the programs in which LLVM is much
>>> slower than GCC, so I decided to take a look and see why that is so. The
>>> program has many loops that look like this:
>>>
>>> #define ROWS 6
>>> #define COLS 7
>>>
>>> void init_board(char b[COLS][ROWS+1])
>>> {
>>> int i,j;
>>>
>>> for (i=0;i<COLS;i++)
>>> for (j=0;j<ROWS;j++)
>>> b[i][j]='.';
>>> for (i=0;i<COLS;i++)
>>> b[...