[llvm-bugs] [Bug 37569] IsPowerOfTwo not treating INT_MIN as a negative number
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jun 27 03:56:56 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37569
Simon Pilgrim <llvm-dev at redking.me.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|new bugs |Common Code Generator Code
Fixed By Commit(s)| |335717, 335719
Status|NEW |RESOLVED
Resolution|--- |FIXED
Product|new-bugs |libraries
--- Comment #1 from Simon Pilgrim <llvm-dev at redking.me.uk> ---
rL335717 fixed the issue by preventing the combine.
rL335719 improved scalar/vector codegen by folding:
SDIV(X, MIN_SIGNED) -> SELECT(X == MIN_SIGNED, 1, 0)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180627/4566b9db/attachment.html>
More information about the llvm-bugs
mailing list