diff options
author | Rong Xu <xur@google.com> | 2014-10-27 22:38:35 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-10-27 22:38:35 +0000 |
commit | 62ff1558ba46eb15a98ef906a696a12a23211185 (patch) | |
tree | dbc41e254e4d6c88354e98b72aa776e4a46d1b22 /gcc-4.9/gcc | |
parent | 6c19e9d73310bd4499d2f317a6d9f3660a53c614 (diff) | |
parent | ab0bb7b89f358e00e28155be52ff96e25947f761 (diff) | |
download | toolchain_gcc-62ff1558ba46eb15a98ef906a696a12a23211185.tar.gz toolchain_gcc-62ff1558ba46eb15a98ef906a696a12a23211185.tar.bz2 toolchain_gcc-62ff1558ba46eb15a98ef906a696a12a23211185.zip |
Merge "[4.9] Fix GCC4.9 segfaults with -fauto-profile and -Os Backport r216292 from google/gcc-4_9 branch: Move update_ssa after vpt transformation. BUG=17997360"
Diffstat (limited to 'gcc-4.9/gcc')
-rw-r--r-- | gcc-4.9/gcc/auto-profile.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc-4.9/gcc/auto-profile.c b/gcc-4.9/gcc/auto-profile.c index 11c20164e..c69c1e68c 100644 --- a/gcc-4.9/gcc/auto-profile.c +++ b/gcc-4.9/gcc/auto-profile.c @@ -1674,7 +1674,14 @@ afdo_annotate_cfg (const stmt_set &promoted_stmts) counts_to_freqs (); } if (flag_value_profile_transformations) - gimple_value_profile_transformations (); + { + gimple_value_profile_transformations (); + free_dominance_info (CDI_DOMINATORS); + free_dominance_info (CDI_POST_DOMINATORS); + calculate_dominance_info (CDI_POST_DOMINATORS); + calculate_dominance_info (CDI_DOMINATORS); + update_ssa (TODO_update_ssa); + } } /* Wrapper function to invoke early inliner. */ @@ -1756,7 +1763,6 @@ auto_profile (void) early_inline (); autofdo::afdo_annotate_cfg (promoted_stmts); compute_function_frequency (); - update_ssa (TODO_update_ssa); /* Local pure-const may imply need to fixup the cfg. */ if (execute_fixup_cfg () & TODO_cleanup_cfg) |