https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67755

--- Comment #8 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Wed Jan 13 04:17:36 2016
New Revision: 232313

URL: https://gcc.gnu.org/viewcvs?rev=232313&root=gcc&view=rev
Log:
[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.

Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr67755.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-threadupdate.c

Reply via email to