"deployment/vscode:/vscode.git/clone" did not exist on "14c1b31c784e14a498e78631bb7f40f0ca3a9151"
Commit b53f3d1a authored by Paul's avatar Paul
Browse files

Fix error in replacing args

parent c62fc414
...@@ -90,12 +90,7 @@ void eliminate_contiguous::apply(module& p) const ...@@ -90,12 +90,7 @@ void eliminate_contiguous::apply(module& p) const
if(try_compute_shape(ins, new_args)) if(try_compute_shape(ins, new_args))
{ {
for(auto i : range(args.size())) p.replace_instruction(ins, ins->get_operator(), new_args);
{
if(args[i] == new_args[i])
continue;
instruction::replace_argument(ins, args[i], new_args[i]);
}
} }
else else
{ {
......
File mode changed from 100644 to 100755
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment