Commit 3fc986f0 authored by Ted Themistokleous's avatar Ted Themistokleous
Browse files

fixup! fixup! fixup! Simplify algebra for 0*x, x*0 and 0/x operations

parent 4b7210e1
...@@ -855,10 +855,9 @@ struct find_zero_div_const ...@@ -855,10 +855,9 @@ struct find_zero_div_const
{ {
auto matcher() const { return match::name("div")(match::arg(1)(match::has_value(0.0f))); } auto matcher() const { return match::name("div")(match::arg(1)(match::has_value(0.0f))); }
void apply [[noreturn]] (const module& m, const match::matcher_result& r) const [[noreturn]] void apply([[maybe_unused]] module& m,
[[maybe_unused]] const match::matcher_result& r) const
{ {
(void)m;
(void)r;
MIGRAPHX_THROW("ERROR: Matched division by zero in pass"); MIGRAPHX_THROW("ERROR: Matched division by zero in pass");
} }
}; };
......
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