https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123070
--- Comment #22 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #21) > Hacking generic_type_for in tree-ssa-loop-ivopts.cc to return the pointer > type fixes the issue. But I still am not sure that is valid. > > generic_type_for used to return pointer_type_node, see PR 20625 > (r0-67159-gd482f417e4445f). But then an integer type due to PR 27865 > (r0-76106-g2052721560b232). Most of r0-76106-g2052721560b232 was removed when pointer plus was added (r0-81506-g5be014d5b728cf) too. So maybe we can move back to ptr_type_node.
