[Bug tree-optimization/103345] missed optimization: add/xor individual bytes to form a word

roger at nextmovesoftware dot com gcc-bugzilla@gcc.gnu.org
Sun Nov 21 12:44:21 GMT 2021


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

Roger Sayle <roger at nextmovesoftware dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|other                       |tree-optimization
     Ever confirmed|0                           |1
                 CC|                            |roger at nextmovesoftware dot com
   Last reconfirmed|                            |2021-11-21

--- Comment #1 from Roger Sayle <roger at nextmovesoftware dot com> ---
The ior form is percieved in tree-ssa's bswap pass implemented in
gimple-ssa-store-merging.c.
32 bit load in target endianness found at: _16 = MEM <unsigned int> [(const
uint8_t *)ptr_15(D)];
32-bit nop implementations found: 1
My guess it that it should be trivial to handle the PLUS_EXPR and BIT_XOR_EXPR
tree codes at the same time as BIT_IOR_EXPR.


More information about the Gcc-bugs mailing list