[llvm-dev] Global removal pass - potential for improvement?

Karl Rehm via llvm-dev llvm-dev at lists.llvm.org
Tue Jan 28 09:08:21 PST 2020


Hey everyone,
I was looking into how the global optimization pass fares against things
like what's reported in https://bugs.llvm.org/show_bug.cgi?id=44676
Looking at this, I think it would be pretty trivial to optimize that down
given that there are already threading assumptions made:
https://godbolt.org/z/u6ZqoB
Is this something I can look into? Another thing is that currently *all*
external calls break this optimization, including calls to intrinsics that
probably shouldn't: https://godbolt.org/z/pK7Cew
Maybe add some sort of way (i.e. an attribute) to mark that a call can be
optimized through in this way?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200128/074c97ea/attachment.html>


More information about the llvm-dev mailing list