Open Quuxplusone opened 3 years ago
Bugzilla Link | PR48909 |
Status | NEW |
Importance | P enhancement |
Reported by | Alex Gaynor (alex.gaynor@gmail.com) |
Reported on | 2021-01-27 15:17:00 -0800 |
Last modified on | 2021-01-28 01:00:24 -0800 |
Version | unspecified |
Hardware | PC All |
CC | david.bolvansky@gmail.com, florian_hahn@apple.com, htmldeveloper@gmail.com, lebedev.ri@gmail.com, llvm-bugs@lists.llvm.org, nelhage@nelhage.com, nikita.ppv@gmail.com |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
I compiled to LLVM IR and cleaned up the result a bit and put it through
alive2; Assuming I did this right this verifies that there aren't any subtle UB
or poison edge cases here, the proposed straightforward optimization is correct
at the LLVM layer.
https://alive2.llvm.org/ce/z/Ckgak9