https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86925
--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> --- Author: marxin Date: Wed Aug 15 08:55:15 2018 New Revision: 263552 URL: https://gcc.gnu.org/viewcvs?rev=263552&root=gcc&view=rev Log: Fix merging of 2 predictors (PR tree-optimization/86925). 2018-08-15 Martin Liska <mli...@suse.cz> PR tree-optimization/86925 * predict.c (expr_expected_value_1): When taking later predictor, assign also probability. Use fold_build2_initializer_loc in order to fold the expression in -frounding-math. 2018-08-15 Martin Liska <mli...@suse.cz> PR tree-optimization/86925 * gcc.dg/predict-20.c: New test. * gcc.dg/predict-21.c: New test. Added: trunk/gcc/testsuite/gcc.dg/predict-20.c trunk/gcc/testsuite/gcc.dg/predict-21.c Modified: trunk/gcc/ChangeLog trunk/gcc/predict.c trunk/gcc/testsuite/ChangeLog