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
if(try_compute_shape(ins, new_args))
{
for(auto i : range(args.size()))
{
if(args[i] == new_args[i])
continue;
instruction::replace_argument(ins, args[i], new_args[i]);
}
p.replace_instruction(ins, ins->get_operator(), new_args);
}
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