This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/54579] missed optimization: ASR idiom


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54579

Mikhail Maltsev <miyuki at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |miyuki at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #3 from Mikhail Maltsev <miyuki at gcc dot gnu.org> ---
We already fold (-a - 1) into ~a, so the transformation for PR55299 should work
for this case too. I added the mentioned test case to
gcc/testsuite/gcc.dg/fold-notshift-1.c.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]