feat(library/compiler/cse): ignore 0-ary macros during common subexpression elimination
This commit is contained in:
parent
a972c13ce9
commit
abfea1f388
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ class cse_fn : public compiler_step_visitor {
|
|||
|
||||
virtual void visit_macro(expr const & e) override {
|
||||
if (check_visited(e)) return;
|
||||
add_candidate(e);
|
||||
if (macro_num_args(e) > 0) add_candidate(e);
|
||||
for (unsigned i = 0; i < macro_num_args(e); i++)
|
||||
visit(macro_arg(e, i));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue