Displaying 4 results from an estimated 4 matches for "ohsallen".
Did you mean:
hallen
2015 Mar 13
2
[LLVMdev] Alias analysis issue with structs on PPC
On Fri, Mar 13, 2015 at 2:54 PM Daniel Berlin <dberlin at dberlin.org> wrote:
> On Fri, Mar 13, 2015 at 2:39 PM Olivier H Sallenave <ohsallen at us.ibm.com>
> wrote:
>
>> Hi,
>>
>> I have the following C loop to vectorize:
>>
>> struct box {
>> double* source;
>> };
>>
>> void test(double* restrict result, struct box my_struct, int len)
>> {
>> for (int i=...
2015 Mar 13
2
[LLVMdev] Alias analysis issue with structs on PPC
Hi,
I have the following C loop to vectorize:
struct box {
double* source;
};
void test(double* restrict result, struct box my_struct, int len)
{
for (int i=0 ; i<len; i++) {
result[i] = my_struct.source[i] * my_struct.source[i];
}
}
There are two references in the loop, result[i] (restrict) and
my_struct.source[i] (readonly). The compiler should easily figure out that
2015 Mar 15
5
[LLVMdev] Alias analysis issue with structs on PPC
...ial.
Olivier
>
> 2015-03-13 18:51 GMT-04:00 Daniel Berlin <dberlin at dberlin.org>:
>
>>
>>
>> On Fri, Mar 13, 2015 at 2:54 PM Daniel Berlin <dberlin at dberlin.org>
>> wrote:
>>
>>> On Fri, Mar 13, 2015 at 2:39 PM Olivier H Sallenave <ohsallen at us.ibm.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I have the following C loop to vectorize:
>>>>
>>>> struct box {
>>>> double* source;
>>>> };
>>>>
>>>> void test(dou...
2014 Aug 07
2
[LLVMdev] FPOpFusion = Fast and Multiply-and-add combines
Hi Sanjay,
You are right. I tried XL and gcc 4.8.2 for PPC and I also got
multiply-and-add operations.
I supported my statement on what I read in the gcc man page. -ffast-math is
used in clang to set fp-contract to fast (default is standard) and in gcc
it activates (among others) the flag -funsafe-math-optimizations whose
description includes:
"Allow optimizations for floating-point