[PATCH][PR tree-optimization/pr67755] Fix profile insanity adjustments
commitd07cbccc2478f83231e48d71618431e522674df5
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Jan 2016 04:17:36 +0000 (13 04:17 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Jan 2016 04:17:36 +0000 (13 04:17 +0000)
tree758193d840df21e1ce09bb65de351fbb5fdf40b7
parent22c0b2141115e1a6d573ea4c76394c2da00da054
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232313 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr67755.c [new file with mode: 0644]
gcc/tree-ssa-threadupdate.c