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
6a141efa
Commit
6a141efa
authored
Apr 10, 2019
by
Shucai Xiao
Browse files
fixed two comments from code review.'
parent
6f44fa29
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
src/pass_manager.cpp
src/pass_manager.cpp
+0
-3
src/program.cpp
src/program.cpp
+1
-2
No files found.
src/pass_manager.cpp
View file @
6a141efa
...
...
@@ -18,9 +18,6 @@ inline namespace MIGRAPHX_INLINE_NS {
void
run_passes
(
program
&
prog
,
const
std
::
vector
<
pass
>&
passes
,
tracer
trace
)
{
if
(
enabled
(
MIGRAPHX_TRACE_COMPILE
{}))
trace
=
tracer
{
std
::
cout
};
for
(
auto
&
p
:
passes
)
{
trace
(
"Pass: "
,
p
.
name
());
...
...
src/program.cpp
View file @
6a141efa
...
...
@@ -292,8 +292,7 @@ void program::compile(const target& t, tracer trace)
trace
=
tracer
{
std
::
cout
};
trace
(
*
this
);
trace
();
auto
vec_passes
=
t
.
get_passes
(
this
->
impl
->
ctx
);
run_passes
(
*
this
,
vec_passes
,
trace
);
run_passes
(
*
this
,
t
.
get_passes
(
this
->
impl
->
ctx
),
trace
);
auto
invalid
=
this
->
validate
();
if
(
invalid
!=
impl
->
instructions
.
end
())
{
...
...
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