[Bug tree-optimization/66718] Non-invariant ADDR_EXPR not vectorized

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 1 09:46:00 GMT 2015


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-07-01
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
forwprop is the only one who does sth "useful" with the non-lowered form
(propagating the addresses into dereferences).  Eventually trying that
very specific transform during the lowering gives more freedom in pass
placement.

Indeed we'd like reassoc to run on the lowering result to expose CSE
opportunities.

I think lowering these makes sense in general and it's a much easier way
(implementation-wise) to get things vectorized as well.

Just do

  get_inner_reference (...)
  force_gimple_operand (...)



More information about the Gcc-bugs mailing list