re PR tree-optimization/84841 (ICE: tree check: expected ssa_name, have real_cst...
authorJakub Jelinek <jakub@redhat.com>
Fri, 16 Mar 2018 08:06:41 +0000 (09:06 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 16 Mar 2018 08:06:41 +0000 (09:06 +0100)
commit7b9be7003d3272d2faac9f39a5a6835d583307e0
tree403b3c0cc2e831ced8bc874ee678a2f81afae208
parent828fd2fbe88ee6adb16b708d584caf96237046da
re PR tree-optimization/84841 (ICE: tree check: expected ssa_name, have real_cst in rewrite_expr_tree_parallel, at tree-ssa-reassoc.c:4624)

PR tree-optimization/84841
* tree-ssa-reassoc.c (INTEGER_CONST_TYPE): Change to 1 << 4 from
1 << 3.
(FLOAT_ONE_CONST_TYPE): Define.
(constant_type): Return FLOAT_ONE_CONST_TYPE for -1.0 and 1.0.
(sort_by_operand_rank): Put entries with higher constant_type last
rather than first to match comments.

* gcc.dg/pr84841.c: New test.

From-SVN: r258586
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr84841.c [new file with mode: 0644]
gcc/tree-ssa-reassoc.c