Commit c37b0cdd authored by yb9976's avatar yb9976
Browse files

Match operand of left node first.

This simplifies to understand the pattern when reading the code.
parent 24039998
......@@ -5080,9 +5080,9 @@ cmp_x_eq_0:;
*/
/* Remove unnecessary conversions */
if ((!mode_is_float(mode)
|| be_get_backend_param()->mode_float_arithmetic == NULL)
&& is_Conv(left) && is_Const(right)) {
if (is_Conv(left) && is_Const(right)
&& (!mode_is_float(mode)
|| be_get_backend_param()->mode_float_arithmetic == NULL)) {
ir_node *op_left = get_Conv_op(left);
ir_mode *mode_left = get_irn_mode(op_left);
if (smaller_mode(mode_left, mode)) {
......
Supports Markdown
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