Displaying 2 results from an estimated 2 matches for "klx3q3".
2019 Oct 31
2
llvm emits unoptimized code
...loops.
>> While with optimization disabled
>> It produce single call to __tls_get_address outside of loop.
>> is this a missed optimization by llvm?
>>
>
> It's interesting to me that there's a big difference in -fpie and -fpic.
>
> https://godbolt.org/z/klX3q3
>
> In particular, with -fpie, no call to __tls_get_addr is needed, so the
> underlying considerations for optimization change. This feels like the
> optimizer isn't taking in to account the overhead of -fpic, when
> determining whether to hoist the address calculation out of th...
2019 Oct 31
3
llvm emits unoptimized code
Hi Devs,
Consider testcase here
https://godbolt.org/z/qHZzqw
When optimization is O1 or above it produces unoptimized code
because it calls __tls_get_address in loops.
While with optimization disabled
It produce single call to __tls_get_address outside of loop.
is this a missed optimization by llvm?
./Kamlesh