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
3fc986f0
"src/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "be38aff9ff5cbb091feec14d0748ddad9e0c275f"
Commit
3fc986f0
authored
Jul 01, 2022
by
Ted Themistokleous
Browse files
fixup! fixup! fixup! Simplify algebra for 0*x, x*0 and 0/x operations
parent
4b7210e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/simplify_algebra.cpp
src/simplify_algebra.cpp
+2
-3
No files found.
src/simplify_algebra.cpp
View file @
3fc986f0
...
...
@@ -855,10 +855,9 @@ struct find_zero_div_const
{
auto
matcher
()
const
{
return
match
::
name
(
"div"
)(
match
::
arg
(
1
)(
match
::
has_value
(
0.0
f
)));
}
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"
);
}
};
...
...
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