Commit 8dfd08e1 authored by Paul's avatar Paul
Browse files

Format

parent 632b5f9b
......@@ -777,18 +777,13 @@ struct find_add_split
{
auto matcher() const
{
auto add = [](auto... ms) {
return match::name("add")(match::either_arg(0, 1)(ms...));
};
auto add = [](auto... ms) { return match::name("add")(match::either_arg(0, 1)(ms...)); };
auto slice = match::name("slice").bind("slice");
auto constant = match::is_constant().bind("a");
auto any = match::any().bind("x");
auto slice_a_x = add(slice, add(constant, any));
auto a_slice_x = add(constant, add(slice, any));
return match::any_of(
slice_a_x,
a_slice_x
);
return match::any_of(slice_a_x, a_slice_x);
}
void apply(module& m, const match::matcher_result& r) const
......@@ -800,7 +795,6 @@ struct find_add_split
auto slice_add = m.insert_instruction(ins, migraphx::make_op("add"), slice, a);
m.replace_instruction(ins, migraphx::make_op("add"), slice_add, x);
}
};
......
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