Displaying 2 results from an estimated 2 matches for "short2".
Did you mean:
short
2009 Sep 04
3
[LLVMdev] TOT opt does not terminate!
...clang foo.c and clang -O1 foo.c
work fine.
clang -O2 foo.c and clang -O3 foo.c
do not terminate. (At least after 10 minutes)
If I generate the bit code (clang-cc -emit-llvmbc) and then run:
opt -O3 foo.bc
it does not terminate.
//foo.c
int get_id(int);
typedef short short2 __attribute__ ((vector_size (2)));
union _X {
short2 s;
int i;
};
typedef union _X X;
inline short2 as_short2(int x)
{
X result;
result.i = x;
return result.s;
}
inline int as_int(short2 x)
{
X result;
result.s = x;
return result.i;...
2012 Jan 14
0
[LLVMdev] Vector ops out of loops
Hi all,
Is there any optimization pass which can move vector ops out of loops ?
For example:
typedef short short2 __attribute__((ext_vector_type(2)));
short2 a[50],b[50],c;
void test() {
for (i=0; i<50; i++) {
c.y += a[i].x * b[i].y;
}
}
clang in -O3 gives me the following IR:
@i = common global i32 0, align 4
@a = common global [50 x <2 x i16>] zeroinitializer, align 4
@b = common globa...