Commit f715ad3f authored by Ted Themistokleous's avatar Ted Themistokleous
Browse files

fixup! Add skip_broadcasts to simplify algebra value matchers

parent a25058de
......@@ -916,9 +916,9 @@ struct find_zero_ops
auto matcher() const
{
auto mul_zero = match::name("mul")(match::either_arg(0, 1)(
match::skip_broadcasts(match::has_value(0.0f).bind("x")), match::any()));
match::has_value(0.0f).bind("x"), match::any()));
auto div_zero = match::name("div")(
match::args(match::skip_broadcasts(match::has_value(0.0f).bind("x")), match::any()));
match::has_value(0.0f).bind("x"), match::any());
return match::any_of(mul_zero, div_zero);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment