Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
18bc53f7
Commit
18bc53f7
authored
Jul 08, 2019
by
Paul
Browse files
Simplify add replacement
parent
12d0915e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/simplify_algebra.cpp
src/simplify_algebra.cpp
+1
-2
No files found.
src/simplify_algebra.cpp
View file @
18bc53f7
...
@@ -73,8 +73,7 @@ struct find_mul_add
...
@@ -73,8 +73,7 @@ struct find_mul_add
auto
xa_ins
=
p
.
insert_instruction
(
ins
,
op
::
mul
{},
x_ins
,
a_ins
);
auto
xa_ins
=
p
.
insert_instruction
(
ins
,
op
::
mul
{},
x_ins
,
a_ins
);
auto
ya_ins
=
p
.
insert_instruction
(
ins
,
op
::
mul
{},
y_ins
,
a_ins
);
auto
ya_ins
=
p
.
insert_instruction
(
ins
,
op
::
mul
{},
y_ins
,
a_ins
);
auto
sum_xa_ya
=
p
.
insert_instruction
(
ins
,
op
::
add
{},
xa_ins
,
ya_ins
);
p
.
replace_instruction
(
ins
,
op
::
add
{},
xa_ins
,
ya_ins
);
p
.
replace_instruction
(
ins
,
sum_xa_ya
);
}
}
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment