[Bug rtl-optimization/36693] missed optimization for pointer access with offset on powerpc

segher at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Nov 22 17:38:00 GMT 2015


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

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |segher at gcc dot gnu.org
         Resolution|---                         |FIXED
      Known to fail|                            |

--- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> ---
GCC now generates the same code for both, no matter what tuning.

get_and_increment1:
        lwz 9,0(3)
        addi 10,9,4
        stw 10,0(3)
        lwz 3,0(9)
        blr

Closing as fixed.


More information about the Gcc-bugs mailing list