pub(crate) fn canonicalize_binary_operations<'tcx, 'body>(
tcx: TyCtxt<'tcx>,
local_decls: &'body LocalDecls<'tcx>,
op: &mut BinOp,
lhs: &mut Operand<'tcx>,
rhs: &mut Operand<'tcx>,
) -> boolExpand description
Canonicalize binary operations:
op(const, place)->op(place, const)op(place _2, place _1)->op(place _1, place _2)
For ops </<=/>/>=, we would also modify the op itself.