https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88850
--- Comment #7 from Tamar Christina <tnfchris at gcc dot gnu.org> --- Thanks for the information Vladimir, I wasn't aware of this special treatment of cost 2. Changing the cost does indeed fix the ICE. Working on a sensible patch now.