Commit ac9c4fb5 authored by qinsoon's avatar qinsoon

swap operands for floating point operations as well

parent fa95a9b4
Pipeline #1180 passed with stages
in 54 minutes and 40 seconds
......@@ -2421,6 +2421,11 @@ impl<'a> InstructionSelection {
swap_operands();
}
}
op::BinOp::FAdd | op::BinOp::FMul => {
if self.match_fconst_zero(node_op1) || self.match_mem(node_op1) {
swap_operands();
}
}
_ => {}
}
}
......
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