re PR tree-optimization/86489 (ICE in gimple_phi_arg starting with r261682 when build...
authorKugan Vivekanandarajah <kuganv@linaro.org>
Fri, 13 Jul 2018 05:25:47 +0000 (05:25 +0000)
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>
Fri, 13 Jul 2018 05:25:47 +0000 (05:25 +0000)
commit061d40da00952fe7eabd8faae60e3cc4ac8f734a
treecd8810be6cbfa003a055108252efa03a7b119ffb
parentb18bb376a1fa8c48645a7527720f756ae0bb6b87
re PR tree-optimization/86489 (ICE in gimple_phi_arg starting with r261682 when building 531.deepsjeng_r with FDO + LTO)

gcc/ChangeLog:

2018-07-13  Kugan Vivekanandarajah  <kuganv@linaro.org>
    Richard Biener  <rguenther@suse.de>

PR middle-end/86489
* tree-ssa-loop-niter.c (number_of_iterations_popcount): Check
that the loop latch destination where phi is defined.

gcc/testsuite/ChangeLog:

2018-07-13  Kugan Vivekanandarajah  <kuganv@linaro.org>

PR middle-end/86489
* gcc.dg/pr86489.c: New test.

Co-Authored-By: Richard Biener <rguenther@suse.de>
From-SVN: r262622
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr86489.c [new file with mode: 0644]
gcc/tree-ssa-loop-niter.c