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
1ff6c73e
Commit
1ff6c73e
authored
Oct 18, 2023
by
Umang Yadav
Browse files
Gather all tids for and initialize tid_counter
parent
655e9646
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/generate_root_modules.cpp
src/generate_root_modules.cpp
+7
-2
No files found.
src/generate_root_modules.cpp
View file @
1ff6c73e
...
...
@@ -124,6 +124,13 @@ struct auto_gen_root_modules
:
tass
(
target_assignments
)
{
auto
*
mm
=
p
.
get_main_module
();
for
(
const
auto
&
i
:
tass
)
{
if
(
tid_counter
.
find
(
i
.
second
)
==
tid_counter
.
end
())
{
update_tid_counter
(
i
.
second
);
}
}
find_subgraphs
(
mm
,
p
);
dead_code_elimination
{}.
apply
(
p
);
}
...
...
@@ -231,7 +238,6 @@ struct auto_gen_root_modules
if
(
tass
.
find
(
ins
)
!=
tass
.
end
())
{
current_tid
=
std
::
make_optional
<
std
::
size_t
>
(
tass
.
at
(
ins
));
update_tid_counter
(
current_tid
.
value
());
same_tid_ins_vec
.
push_back
(
ins
);
same_tid_ins_set
.
insert
(
ins
);
fork_node
=
is_fork_node
(
ins
,
current_tid
);
...
...
@@ -398,7 +404,6 @@ struct auto_gen_root_modules
if
(
tass
.
find
(
ins
)
!=
tass
.
end
())
{
current_tid
=
tass
.
at
(
ins
);
update_tid_counter
(
current_tid
);
same_tid_ins_set
.
insert
(
ins
);
same_tid_ins_vec
.
push_back
(
ins
);
}
...
...
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