gcc/ChangeLog:
2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
* tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
when there is stmt_to_insert.
gcc/testsuite/ChangeLog:
2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
* gcc.dg/tree-ssa/reassoc-44.c: New test.
From-SVN: r236673
+2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
+
+ * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
+ when there is stmt_to_insert.
+
2016-05-24 Martin Sebor <msebor@redhat.com>
PR c++/71147
+2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
+
+ * gcc.dg/tree-ssa/reassoc-44.c: New test.
+
2016-05-24 Pat Haugen <pthaugen@us.ibm.com>
PR target/71050
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+
+unsigned int a;
+int b, c;
+void fn1 ()
+{
+ b = a + c + c;
+}
See PR60418. */
if (!SSA_NAME_IS_DEFAULT_DEF (oea->op)
&& !SSA_NAME_IS_DEFAULT_DEF (oeb->op)
+ && !oea->stmt_to_insert
+ && !oeb->stmt_to_insert
&& SSA_NAME_VERSION (oeb->op) != SSA_NAME_VERSION (oea->op))
{
gimple *stmta = SSA_NAME_DEF_STMT (oea->op);