[Bug middle-end/70434] [5/6 Regression] adding an extraneous cast to vector type results in inferior code

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 29 13:35:00 GMT 2016


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |5.4

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
In the end this is because of the unfortunate way we handle vector indexing
(I think we have similar PRs elsewhere where I pasted patches to address this).

The common convert_vector_to_pointer_for_subscript is the culprit here where
we should instead simply convert the vector to an array via a
VIEW_CONVERT_EXPR.


More information about the Gcc-bugs mailing list