aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-reassoc.c
diff options
context:
space:
mode:
authorKugan Vivekanandarajah <kuganv@linaro.org>2016-07-27 22:45:46 +0000
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>2016-07-27 22:45:46 +0000
commit4536610dd4f7257b8b1736afdceae66977176466 (patch)
treebcf7e58fb1752001482f50c122459feeed6273ed /gcc/tree-ssa-reassoc.c
parentec1e2a4097535d7075929d638f4120c5a5694725 (diff)
downloadgcc-4536610dd4f7257b8b1736afdceae66977176466.zip
gcc-4536610dd4f7257b8b1736afdceae66977176466.tar.gz
gcc-4536610dd4f7257b8b1736afdceae66977176466.tar.bz2
re PR tree-optimization/71994 (ICE: verify_gimple failed)
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
Diffstat (limited to 'gcc/tree-ssa-reassoc.c')
-rw-r--r--gcc/tree-ssa-reassoc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c
index 7c7136e..7fd7550 100644
--- a/gcc/tree-ssa-reassoc.c
+++ b/gcc/tree-ssa-reassoc.c
@@ -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. */