[Bug rtl-optimization/85180] Infinite loop in RTL DSE optimizer

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Apr 4 15:31:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85180

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Actually, find_base_value is probably ok, it doesn't handle VALUEs and for
PLUS/MINUS it just guesses one operand on which to recurse, rather than both.

Another possibility is to add some counter and count how many VALUEs we've
processed for one toplevel call (or how many recursions we've done) and limit
that by some constant or param, and just return NULL after we hit that limit.


More information about the Gcc-bugs mailing list