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
2f25e1d9
Commit
2f25e1d9
authored
Sep 06, 2022
by
Paul
Browse files
Format
parent
68238cc9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/simplify_algebra.cpp
src/simplify_algebra.cpp
+2
-2
No files found.
src/simplify_algebra.cpp
View file @
2f25e1d9
...
@@ -415,10 +415,10 @@ struct find_concat_op
...
@@ -415,10 +415,10 @@ struct find_concat_op
void
move_instructions_back
(
module
&
m
,
instruction_ref
pos
,
std
::
vector
<
instruction_ref
>
inss
)
void
move_instructions_back
(
module
&
m
,
instruction_ref
pos
,
std
::
vector
<
instruction_ref
>
inss
)
{
{
auto
start
=
range
(
m
.
begin
(),
pos
);
auto
start
=
range
(
m
.
begin
(),
pos
);
for
(
auto
ins
:
iterator_for
(
start
))
for
(
auto
ins
:
iterator_for
(
start
))
{
{
auto
it
=
std
::
find
(
inss
.
begin
(),
inss
.
end
(),
ins
);
auto
it
=
std
::
find
(
inss
.
begin
(),
inss
.
end
(),
ins
);
if
(
it
!=
inss
.
end
())
if
(
it
!=
inss
.
end
())
inss
.
erase
(
it
);
inss
.
erase
(
it
);
}
}
for
(
auto
ins
:
inss
)
for
(
auto
ins
:
inss
)
...
...
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