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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Most likely, but that would be -frounding-math only, no?
That said, at the GIMPLE level we really don't know if the target will have
immediate - register or register - immediate or both instructions etc., so
maybe it might be better to do it on RTL.  Although, after RTL expansion, we
usually have constants in memory (constant pool) rather than in registers, so
the optimization would need to also do some analysis on what kind of constants
the function uses and if the sign flipping wouldn't increase number of those
constants (it can of course also decrease that).

Reply via email to