Failures Coroutine Optimization

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Failures Coroutine Optimization

Yvan Roux via cfe-dev
Hey guys, I've recently open source a coroutine based library.

We identified couple cases where clang/llvm is not able to optimize away some heap allocations. I was wondering whether there is a way to fix this, either by a workaround, compiler flags or fix in the llvm-optimisation pass.

Here is an link to the compiler explorer:
https://godbolt.org/z/kMEWEO 

Feedback highly appreciated.

--
Regards,

Gaetano Checinski
Founder of Loopperfect

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev