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
47ca6522
Commit
47ca6522
authored
May 01, 2019
by
Paul
Browse files
Reduce nesting
parent
ac031de5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
src/propagate_constant.cpp
src/propagate_constant.cpp
+8
-10
No files found.
src/propagate_constant.cpp
View file @
47ca6522
...
...
@@ -33,8 +33,11 @@ void propagate_constant::apply(program& p) const
ins
->
outputs
().
end
());
for
(
auto
child
:
children
)
{
if
(
not
skip_propogate
(
child
))
if
(
skip_propogate
(
child
))
{
self
(
child
);
continue
;
}
auto
r
=
child
->
eval
();
if
(
not
r
.
empty
())
{
...
...
@@ -43,11 +46,6 @@ void propagate_constant::apply(program& p) const
self
(
p
.
replace_instruction
(
child
,
l
));
}
}
else
{
self
(
child
);
}
}
})(
i
);
}
}
...
...
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