Commit e42603a5 authored by Paul's avatar Paul
Browse files

Use local shape variable

parent 22c28f75
...@@ -12,9 +12,10 @@ bool skip_propogate(instruction_ref ins) ...@@ -12,9 +12,10 @@ bool skip_propogate(instruction_ref ins)
{ {
if(ins->name() == "@literal") if(ins->name() == "@literal")
return true; return true;
if(ins->get_shape().broadcasted() and not ins->get_shape().scalar()) auto&& s = ins->get_shape();
if(s.broadcasted() and not s.scalar())
return true; return true;
if(ins->get_shape().scalar() and ins->get_shape().elements() != 1) if(s.scalar() and s.elements() != 1)
return true; return true;
return false; return false;
} }
......
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