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