https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106630
Aldy Hernandez <aldyh at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org --- Comment #3 from Aldy Hernandez <aldyh at gcc dot gnu.org> --- It looks like DOM2, as a side-effect of using the ranger to do cprop, is exporting a global range for a_9 that is causing a match.pd pattern to go into an endless loop. I don't understand match.pd patterns very well. Could someone see if there is something obvious going on in the pattern? This is .ivopts: Applying pattern match.pd:3164, generic-match.cc:22877 Matching expression match.pd:1894, generic-match.cc:676 Applying pattern match.pd:3164, generic-match.cc:22877 Matching expression match.pd:1894, generic-match.cc:676 Applying pattern match.pd:3164, generic-match.cc:22877 Matching expression match.pd:1894, generic-match.cc:676 Applying pattern match.pd:3164, generic-match.cc:22877 Matching expression match.pd:1894, generic-match.cc:676 Applying pattern match.pd:3164, generic-match.cc:22877 Matching expression match.pd:1894, generic-match.cc:676 Matching expression match.pd:1894, generic-match.cc:676 Applying pattern match.pd:1921, generic-match.cc:27593 Matching expression match.pd:146, generic-match.cc:23 Matching expression match.pd:1894, generic-match.cc:676 Applying pattern match.pd:3164, generic-match.cc:22877 Matching expression match.pd:1894, generic-match.cc:676 Applying pattern match.pd:3164, generic-match.cc:22877 Matching expression match.pd:1894, generic-match.cc:676 Applying pattern match.pd:3164, generic-match.cc:22877 Matching expression match.pd:1894, generic-match.cc:676 Matching expression match.pd:1894, generic-match.cc:676 Applying pattern match.pd:1921, generic-match.cc:27593 etc etc etc generic_simplify() is being called with: (gdb) p code $20 = POINTER_PLUS_EXPR (gdb) p debug(_p0) (vector(8) short int *) &g + a_9 * 48 $21 = void (gdb) p debug(_p1) 48 $22 = void (gdb) Where a_9 has a global range of [0,0].