To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

Commit ac9c4fb5 authored by qinsoon's avatar qinsoon
Browse files

swap operands for floating point operations as well

parent fa95a9b4
...@@ -2421,6 +2421,11 @@ impl<'a> InstructionSelection { ...@@ -2421,6 +2421,11 @@ impl<'a> InstructionSelection {
swap_operands(); 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