Extend simplify() recursion warning

This commit is contained in:
Zachary Snow 2021-02-25 16:02:55 -05:00 committed by Zachary Snow
parent 5d0cc54f5c
commit 22bed38540
1 changed files with 1 additions and 1 deletions

View File

@ -571,7 +571,7 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage,
static bool deep_recursion_warning = false; static bool deep_recursion_warning = false;
if (recursion_counter++ == 1000 && deep_recursion_warning) { if (recursion_counter++ == 1000 && deep_recursion_warning) {
log_warning("Deep recursion in AST simplifier.\nDoes this design contain insanely long expressions?\n"); log_warning("Deep recursion in AST simplifier.\nDoes this design contain overly long or deeply nested expressions, or excessive recursion?\n");
deep_recursion_warning = false; deep_recursion_warning = false;
} }