Calculate prediction remainder at proper place (PR tree-optimization/88650).
authorMartin Liska <mliska@suse.cz>
Wed, 2 Jan 2019 14:03:53 +0000 (15:03 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 2 Jan 2019 14:03:53 +0000 (14:03 +0000)
commit0588e288242a3b66b67e79d11e03828a0a728953
treed67d1c0eeb856534cb535a7bfb83d07e55cd4343
parent17067056c18e35885105518a5b5051b5f7b51856
Calculate prediction remainder at proper place (PR tree-optimization/88650).

2019-01-02  Martin Liska  <mliska@suse.cz>

PR tree-optimization/88650
* predict.c (set_even_probabilities): Calculate probability
remainer only when really used.
2019-01-02  Martin Liska  <mliska@suse.cz>

PR tree-optimization/88650
* gfortran.dg/predict-3.f90: New test.

From-SVN: r267513
gcc/ChangeLog
gcc/predict.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/predict-3.f90 [new file with mode: 0644]