re PR tree-optimization/71994 (ICE: verify_gimple failed)
authorKugan Vivekanandarajah <kuganv@linaro.org>
Wed, 27 Jul 2016 22:45:46 +0000 (22:45 +0000)
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>
Wed, 27 Jul 2016 22:45:46 +0000 (22:45 +0000)
gcc/testsuite/ChangeLog:

2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>

PR middle-end/71994
* gcc.dg/torture/pr71994.c: New test.

gcc/ChangeLog:

2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>

PR middle-end/71994
* tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
 before calling get_ops.

From-SVN: r238802

gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/tree-ssa-reassoc.c

index 3289d0affa3e863fa3a7098523b1f9e16f68e4a3..d2e4ecb0eab475ac45d928694b697aab76981693 100644 (file)
@@ -1,3 +1,9 @@
+2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
+
+       PR middle-end/71994
+       * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
+        before calling get_ops.
+
 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
 
        * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
index 3f7e5a7dd267a990a158f322605d846ec61c74d8..204ec1c30545affe4d0cbf56b9fbd34cc323aaa4 100644 (file)
@@ -1,3 +1,8 @@
+2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
+
+       PR middle-end/71994
+       * gcc.dg/torture/pr71994.c: New test.
+
 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
 
        PR middle-end/71078
index 7c7136e710f77efa148c823f3ff2a0f7916157b7..7fd7550ab331df8a59af4098aead7527dbf4c77b 100644 (file)
@@ -3514,10 +3514,10 @@ maybe_optimize_range_tests (gimple *stmt)
             push into ops the individual range test arguments
             of the bitwise or resp. and, recursively.  */
          if (TREE_CODE (rhs) == SSA_NAME
-             && !get_ops (rhs, code, &ops,
-                       loop_containing_stmt (stmt))
              && (TREE_CODE_CLASS (gimple_assign_rhs_code (stmt))
                  != tcc_comparison)
+             && !get_ops (rhs, code, &ops,
+                       loop_containing_stmt (stmt))
              && has_single_use (rhs))
            {
              /* Otherwise, push the _234 range test itself.  */