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