https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64928
--- Comment #13 from Jeffrey A. Law <law at redhat dot com> --- I think we've done similar things for Brad's large testcases in the past. You want to look at both the edge/bb density as well as the overall size. ie, a high density doesn't really hurt if the total cfg is small. See "is_too_expensive" in gcse.c for the current heuristics to avoid trying global opts on these kinds of testcases.