Commit 9b03bff7 authored by Ted Themistokleous's avatar Ted Themistokleous
Browse files

Updating tidy and PR comments

parent df953fbd
......@@ -118,11 +118,7 @@ bool instruction::valid() const
{
computed = lit.get_shape();
}
else if(op.name() == "@param")
{
computed = result;
}
else if(op.name() == "@divzero")
else if(op.name() == "@param" || op.name() == "@divzero")
{
computed = result;
}
......
......@@ -495,7 +495,7 @@ module::insert_divzero(instruction_ref pos, std::vector<instruction_ref> args, s
instruction_ref module::add_divzero(std::vector<instruction_ref> args, shape s)
{
return insert_divzero(impl->instructions.end(), args, s);
return insert_divzero(impl->instructions.end(), std::move(args), s);
}
shape module::get_parameter_shape(std::string name) const
......@@ -646,7 +646,7 @@ instruction_ref module::find_dangling_reference() const
return end();
}
bool is_div_zero(instruction ins) { return ins.name() == "@divzero"; }
bool is_div_zero(const instruction& ins) { return ins.name() == "@divzero"; }
instruction_ref module::find_division_by_zero() const
{
......
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