Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
cd8c2f8e
Commit
cd8c2f8e
authored
Jul 05, 2022
by
Ted Themistokleous
Browse files
fixup! fixup! Add skip_broadcasts to simplify algebra value matchers
parent
f715ad3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/simplify_algebra.cpp
src/simplify_algebra.cpp
+4
-4
No files found.
src/simplify_algebra.cpp
View file @
cd8c2f8e
...
@@ -915,10 +915,10 @@ struct find_zero_ops
...
@@ -915,10 +915,10 @@ struct find_zero_ops
{
{
auto
matcher
()
const
auto
matcher
()
const
{
{
auto
mul_zero
=
match
::
name
(
"mul"
)(
match
::
either_arg
(
0
,
1
)(
auto
mul_zero
=
match
::
name
(
"mul"
)(
match
::
has_value
(
0.0
f
).
bind
(
"x"
),
match
::
any
()));
match
::
either_arg
(
0
,
1
)(
match
::
has_value
(
0.0
f
).
bind
(
"x"
),
match
::
any
()));
auto
div_zero
=
match
::
name
(
"div"
)(
auto
div_zero
=
match
::
has_value
(
0.0
f
).
bind
(
"x"
),
match
::
any
());
match
::
name
(
"div"
)(
match
::
args
(
match
::
has_value
(
0.0
f
).
bind
(
"x"
),
match
::
any
())
)
;
return
match
::
any_of
(
mul_zero
,
div_zero
);
return
match
::
any_of
(
mul_zero
,
div_zero
);
}
}
...
...
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