Displaying 3 results from an estimated 3 matches for "unroll_dim".
2016 Nov 17
2
Loop invariant not being optimized
I've got an example where I think that there should be some loop-invariant
optimization happening, but it's not. Here's the C code:
#define DIM 8
#define UNROLL_DIM DIM
typedef double InArray[DIM][DIM];
__declspec(noalias) void f1( InArray c, const InArray a, const InArray b )
{
#pragma clang loop unroll_count(UNROLL_DIM)
for( int i=0;i<DIM;i++)
#pragma clang loop unroll_count(UNROLL_DIM)
for( int j=0;j<DIM;j++)
#pragma clang loop unroll_c...
2016 Nov 18
2
Loop invariant not being optimized
...llvm-dev at lists.llvm.org>
> *Subject:* [llvm-dev] Loop invariant not being optimized
>
>
>
> I've got an example where I think that there should be some loop-invariant
> optimization happening, but it's not. Here's the C code:
>
> #define DIM 8
> #define UNROLL_DIM DIM
> typedef double InArray[DIM][DIM];
>
> __declspec(noalias) void f1( InArray c, const InArray a, const InArray b )
> {
>
> #pragma clang loop unroll_count(UNROLL_DIM)
> for( int i=0;i<DIM;i++)
> #pragma clang loop unroll_count(UNROLL_DIM)
> for( int j=0...
2016 Jul 11
2
extra loads in nested for-loop
I was looking at the code generated from the following c code and noticed
extra loads in the inner-loop of these nested for-loops:
#define DIM 8
#define UNROLL_DIM DIM
typedef double InArray[DIM][DIM];
void f1( InArray c, InArray a, InArray b ) {
#pragma clang loop unroll_count(UNROLL_DIM)
for( int i=0;i<DIM;i++)
#pragma clang loop unroll_count(UNROLL_DIM)
for( int j=0;j<DIM;j++)
#pragma clang loop unroll_count(UNROLL_DIM)
for(...