re PR tree-optimization/68157 (internal compiler error: in reassoc_stmt_dominates_stm...
authorJakub Jelinek <jakub@redhat.com>
Wed, 18 Nov 2015 10:23:21 +0000 (11:23 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 18 Nov 2015 10:23:21 +0000 (11:23 +0100)
commit8ebcad86e6aa747d9ca8a077ab1127a04d0d91d3
tree45cbeec18a8644392aadc85ed81c832a661162ee
parent7d4c4fde0e89b87d4b449504e4790e1f49262772
re PR tree-optimization/68157 (internal compiler error: in reassoc_stmt_dominates_stmt_p, at tree-ssa-reassoc.c:1287)

PR tree-optimization/68157
* tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
pow_stmt or mul_stmt from stmt's uid.
(reassociate_bb): Set uid of mul_stmt from stmt's uid.

* g++.dg/opt/pr68157.C: New test.

From-SVN: r230530
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr68157.C [new file with mode: 0644]
gcc/tree-ssa-reassoc.c