Displaying 5 results from an estimated 5 matches for "tk2mm8".
2017 Apr 26
3
Store unswitch
...else
> > a[i] = y1;
> >
> > to
> >
> > a[i] = x ? y0 : y1?
> >
> > I tried opt (3.9) with -O3 but looks like such an optimization do not
> > happened.
> >
>
> The same IR at -O3 for both cases on this example.
> https://godbolt.org/g/Tk2MM8
>
> --
> Davide
>
> "There are no solved problems; there are only problems that are more
> or less solved" -- Henri Poincare
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/2017...
2017 Apr 26
2
Store unswitch
Hi,
Is there a pass in LLVM that can optimize:
if (x)
a[i] = y0;
else
a[i] = y1;
to
a[i] = x ? y0 : y1?
I tried opt (3.9) with -O3 but looks like such an optimization do not
happened.
Thanks
Hongbin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170425/6ddb8d7e/attachment.html>
2017 Apr 26
2
Store unswitch
...t;>> > a[i] = x ? y0 : y1?
>>> >
>>> > I tried opt (3.9) with -O3 but looks like such an optimization do not
>>> > happened.
>>> >
>>>
>>> The same IR at -O3 for both cases on this example.
>>> https://godbolt.org/g/Tk2MM8
>>>
>>> --
>>> Davide
>>>
>>> "There are no solved problems; there are only problems that are more
>>> or less solved" -- Henri Poincare
>>>
>>
>>
> _______________________________________________
> LLVM Deve...
2017 Apr 26
2
Store unswitch
...>
>>>>> > I tried opt (3.9) with -O3 but looks like such an optimization do not
>>>>> > happened.
>>>>> >
>>>>>
>>>>> The same IR at -O3 for both cases on this example.
>>>>> https://godbolt.org/g/Tk2MM8
>>>>>
>>>>> --
>>>>> Davide
>>>>>
>>>>> "There are no solved problems; there are only problems that are more
>>>>> or less solved" -- Henri Poincare
>>>>>
>>>>
>>>...
2017 Apr 28
3
Store unswitch
...like such an optimization do
>>>>>>> not
>>>>>>> > happened.
>>>>>>> >
>>>>>>>
>>>>>>> The same IR at -O3 for both cases on this example.
>>>>>>> https://godbolt.org/g/Tk2MM8
>>>>>>>
>>>>>>> --
>>>>>>> Davide
>>>>>>>
>>>>>>> "There are no solved problems; there are only problems that are more
>>>>>>> or less solved" -- Henri Poincare
&g...