https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80887
--- Comment #11 from Marc Glisse <glisse at gcc dot gnu.org> --- I haven't thought of anything significantly better than adding a counter to bound the recursion depth of calls to gimple_simplify or gimple_resimplify2. We could try to explicitly detect loops, storing in some datastructure the list of arguments to gimple_simplify higher in the call stack, but that's more complicated and it isn't clear that we would gain much.