[llvm-dev] llvm emits unoptimized code

kamlesh kumar via llvm-dev llvm-dev at lists.llvm.org
Thu Oct 31 08:49:31 PDT 2019


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


More information about the llvm-dev mailing list