Commit a1c47ade by Jeff Law Committed by Jeff Law

* tree-ssa-reassoc.c (reassociate_bb): Clarify code slighly.

From-SVN: r253740
parent 5c9c546b
2017-10-13 Jeff Law <law@redhat.com>
* tree-ssa-reassoc.c (reassociate_bb): Clarify code slighly.
2017-10-13 Jakub Jelinek <jakub@redhat.com>
PR target/82274
......@@ -5910,7 +5910,7 @@ reassociate_bb (basic_block bb)
move it to the front. This helps ensure that we generate
(X & Y) & C rather than (X & C) & Y. The former will
often match a canonical bit test when we get to RTL. */
if (ops.length () != 2
if (ops.length () > 2
&& (rhs_code == BIT_AND_EXPR
|| rhs_code == BIT_IOR_EXPR
|| rhs_code == BIT_XOR_EXPR)
......
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