This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] Add missing profile updates to jump threading code


On 09/30/13 12:52, Teresa Johnson wrote:
The jump threading handling in the case of a joiner block was not updating
profile information (it was being updated in the non-joiner case). Added
profile updates for the joiner case, in one place by commoning the
handling between the joiner and non-joiner cases.

Bootstrapped and tested on x86_64-unknown-linux-gnu. Ok for trunk?

Thanks,
Teresa

2013-09-30  Teresa Johnson  <tejohnson@google.com>

         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
         Update redirected out edge count in joiner case.
         (ssa_redirect_edges): Common the joiner and non-joiner cases
         so that joiner case gets profile updates.

         * testsuite/gcc.dg/tree-ssa/ssa-dom-thread-3.c (expand_one_var):
         Update for additional dump message.
Thanks for the fix & cleanup.  OK for the trunk.

Jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]