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
5e60e66b
Commit
5e60e66b
authored
Mar 14, 2019
by
Khalique
Browse files
formatting
parent
d47fdea4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/eliminate_identity.cpp
src/eliminate_identity.cpp
+3
-2
No files found.
src/eliminate_identity.cpp
View file @
5e60e66b
...
...
@@ -19,11 +19,12 @@ void eliminate_identity::apply(program& p) const
// replace with the input of the respective identity
for
(
instruction_ref
&
input
:
new_ins_inputs
)
{
if
(
input
->
name
()
==
"identity"
){
if
(
input
->
name
()
==
"identity"
)
{
input
=
input
->
inputs
().
at
(
0
);
}
}
if
(
new_ins_inputs
!=
ins
->
inputs
())
if
(
new_ins_inputs
!=
ins
->
inputs
())
p
.
replace_instruction
(
ins
,
ins
->
get_operator
(),
new_ins_inputs
);
}
}
...
...
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