[PATCH][PR tree-optimization/pr67755] Fix profile insanity adjustments
authorJeff Law <law@gcc.gnu.org>
Wed, 13 Jan 2016 04:17:36 +0000 (21:17 -0700)
committerJeff Law <law@gcc.gnu.org>
Wed, 13 Jan 2016 04:17:36 +0000 (21:17 -0700)
commitc6f72a46146142e8d9689e160a7d7d9d9bd227de
tree758193d840df21e1ce09bb65de351fbb5fdf40b7
parent5ee4820a1f12d7b36712d46aab7e57efc61e2537
[PATCH][PR tree-optimization/pr67755] Fix profile insanity adjustments

PR tree-optimization/pr67755
* tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
"need_profile_correction".
(thread_block_1): Initialize new field to false by default.  If we
have multiple thread paths through a common joiner to different
final targets, then set new field to true.
(compute_path_counts): Only do count adjustment when it's really
needed.

PR tree-optimization/67755
* gcc.dg/tree-ssa/pr67755.c: New test.

From-SVN: r232313
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr67755.c [new file with mode: 0644]
gcc/tree-ssa-threadupdate.c