"src/targets/vscode:/vscode.git/clone" did not exist on "41e236d38df7b6b7bc680698186c0dd3dcc2437b"
Commit 0836b544 authored by Paul's avatar Paul
Browse files

Skip last operator in simplify reshapes

parent d2968df8
...@@ -47,6 +47,9 @@ void simplify_reshapes::apply(program& p) const ...@@ -47,6 +47,9 @@ void simplify_reshapes::apply(program& p) const
auto end = std::prev(p.end()); auto end = std::prev(p.end());
for(auto ins : iterator_for(p)) for(auto ins : iterator_for(p))
{ {
if (ins == end and ins->name() == "contiguous")
continue;
// Skip possible dead instructions
if(ins->outputs().empty() and ins != end) if(ins->outputs().empty() and ins != end)
continue; continue;
if(is_reshaper(ins)) if(is_reshaper(ins))
......
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