re PR tree-optimization/80054 (ICE in verify_ssa with -O3 -march=broadwell/skylake...
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Mon, 20 Mar 2017 20:04:25 +0000 (20:04 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Mon, 20 Mar 2017 20:04:25 +0000 (20:04 +0000)
commitc34923c44c49a18014b49bf33d180619a9fa0ac9
treeccbcf5648b7808b2c65e066ad61a0d0c2d5c120c
parent8afd9c45b6e84193b2fc12a2332191e28cdbdd70
re PR tree-optimization/80054 (ICE in verify_ssa with -O3 -march=broadwell/skylake-avx512)

[gcc]

2017-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/80054
* gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
the optimization if a PHI or any of its arguments is not dominated
by the candidate's basis.  Use gphi* rather than gimple* as
appropriate.
(replace_profitable_candidates): Clean up a gimple* variable that
should be a gphi* variable.

[gcc/testsuite]

2017-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/80054
* g++.dg/torture/pr80054.C: New file.

From-SVN: r246290
gcc/ChangeLog
gcc/gimple-ssa-strength-reduction.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr80054.C [new file with mode: 0644]