[llvm-bugs] [Bug 47997] InstCombine misses C0-(C1-X) optimization

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Nov 3 05:12:15 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=47997

Roman Lebedev <lebedev.ri at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Fixed By Commit(s)|                            |e465f9c3036b28bdbdbef03eee8
                   |                            |fd022a3b6dcbf,
                   |                            |c009d11bdac4a7f4a3a8ae85e42
                   |                            |da053828a6f24
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #4 from Roman Lebedev <lebedev.ri at gmail.com> ---
e465f9c3036b28bdbdbef03eee8fd022a3b6dcbf taught negator about the subj
transform,
since it does appear to be beneficial always.
The C0-(C1+X) case, however, is not generally beneficial,
so i simply moved it's specific fold earlier, so it fires again for C0=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/20201103/60e80286/attachment.html>


More information about the llvm-bugs mailing list