https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81165
--- Comment #16 from Alexandre Oliva <aoliva at gcc dot gnu.org> --- Patch posted at https://gcc.gnu.org/ml/gcc-patches/2017-12/msg00376.html (before seeing Jeff's comments) Anyway, I think this is simple enough to go into 8. It isn't hard to add caching, should we find it to be too expensive without, it would just require more code to be adjusted to make sure the cache is reset at the end of passes that use it.