diff options
author | Richard Biener <rguenther@suse.de> | 2016-03-24 08:17:43 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2016-03-24 08:17:43 +0000 |
commit | ce9d0c0395d9e1b8ff6ba1ef619f883fc485a0e8 (patch) | |
tree | b980c902ca58b1b05f4a0c2eacc4a719f73a5ab5 /gcc/tree-ssa-reassoc.c | |
parent | 1923c60d63c1b5360164f378565d4462bccc9ad7 (diff) | |
download | gcc-ce9d0c0395d9e1b8ff6ba1ef619f883fc485a0e8.zip gcc-ce9d0c0395d9e1b8ff6ba1ef619f883fc485a0e8.tar.gz gcc-ce9d0c0395d9e1b8ff6ba1ef619f883fc485a0e8.tar.bz2 |
re PR tree-optimization/70372 (ICE: in wide_int_to_tree, at tree.c:1488 with -fno-tree-fre and v2ti vectors)
2016-03-24 Richard Biener <rguenther@suse.de>
PR tree-optimization/70372
* tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
build_all_ones_cst to also handle vector types correctly.
* gcc.dg/tree-ssa/pr70372.c: New testcase.
From-SVN: r234449
Diffstat (limited to 'gcc/tree-ssa-reassoc.c')
-rw-r--r-- | gcc/tree-ssa-reassoc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c index 0340df2..d23dabd 100644 --- a/gcc/tree-ssa-reassoc.c +++ b/gcc/tree-ssa-reassoc.c @@ -821,7 +821,7 @@ eliminate_plus_minus_pair (enum tree_code opcode, } ops->ordered_remove (i); - add_to_ops_vec (ops, build_int_cst_type (op_type, -1)); + add_to_ops_vec (ops, build_all_ones_cst (op_type)); ops->ordered_remove (currindex); reassociate_stats.ops_eliminated ++; |