re PR tree-optimization/54877 (ICE: tree check: expected ssa_name, have real_cst...
authorJakub Jelinek <jakub@redhat.com>
Wed, 10 Oct 2012 17:47:05 +0000 (19:47 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 10 Oct 2012 17:47:05 +0000 (19:47 +0200)
commit2de45fb6ee035764a6c48bc87086be9fcab7aa53
treef8c3854d4255a3e4f2ae118871fd24b14ce502ff
parentb2a8369b55c8e87d148836eb832fc047ffa6dcba
re PR tree-optimization/54877 (ICE: tree check: expected ssa_name, have real_cst in copy_ssa_name_fn, at tree-ssanames.c:335)

PR tree-optimization/54877
* tree-vect-loop.c (vect_is_simple_reduction_1): For MINUS_EXPR
use make_ssa_name instead of copy_ssa_name.

* gcc.dg/torture/pr54877.c: New test.

From-SVN: r192322
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr54877.c [new file with mode: 0644]
gcc/tree-vect-loop.c