diff mbox

Reorgnanization of profile count maintenance code, part 1

Message ID 20170605153718.GB84695@kam.mff.cuni.cz
State New
Headers show

Commit Message

Jan Hubicka June 5, 2017, 3:37 p.m. UTC
Hi,
I have committed the following fix.

Honza

Comments

Andrew Pinski June 5, 2017, 6:38 p.m. UTC | #1
On Mon, Jun 5, 2017 at 8:37 AM, Jan Hubicka <hubicka@ucw.cz> wrote:
> Hi,
> I have committed the following fix.


I seeing the following error while building aarch64-elf:

/home/jenkins/workspace/BuildToolchainAARCH64_thunder_elf_upstream/toolchain/scripts/../src/gcc/shrink-wrap.c:
In function ‘void handle_simple_exit(edge_def*)’:
/home/jenkins/workspace/BuildToolchainAARCH64_thunder_elf_upstream/toolchain/scripts/../src/gcc/shrink-wrap.c:565:
error: ‘struct edge_def’ has no member named ‘frequency’

Thanks,
Andrew



>
> Honza
>
> Index: ChangeLog
> ===================================================================
> --- ChangeLog   (revision 248878)
> +++ ChangeLog   (working copy)
> @@ -1,5 +1,10 @@
>  2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
>
> +       * config/mips/frame-header-opt.c: Include profile-count.h.
> +       * config/riscv/riscv.c: Include profile-count.h
> +
> +2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
> +
>         * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
>         update profile.
>         (sm_set_flag_if_changed): Add bbs field.
> Index: config/mips/frame-header-opt.c
> ===================================================================
> --- config/mips/frame-header-opt.c      (revision 248871)
> +++ config/mips/frame-header-opt.c      (working copy)
> @@ -32,6 +32,7 @@ along with GCC; see the file COPYING3.
>  #include "tree-pass.h"
>  #include "target.h"
>  #include "target-globals.h"
> +#include "profile-count.h"
>  #include "cfg.h"
>  #include "cgraph.h"
>  #include "function.h"
> Index: config/riscv/riscv.c
> ===================================================================
> --- config/riscv/riscv.c        (revision 248871)
> +++ config/riscv/riscv.c        (working copy)
> @@ -73,6 +73,7 @@ along with GCC; see the file COPYING3.
>  #include "common/common-target.h"
>  #include "langhooks.h"
>  #include "dominance.h"
> +#include "profile-count.h"
>  #include "cfg.h"
>  #include "cfgrtl.h"
>  #include "cfganal.h"
diff mbox

Patch

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 248878)
+++ ChangeLog	(working copy)
@@ -1,5 +1,10 @@ 
 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
 
+	* config/mips/frame-header-opt.c: Include profile-count.h.
+	* config/riscv/riscv.c: Include profile-count.h
+
+2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
+
 	* tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
 	update profile.
 	(sm_set_flag_if_changed): Add bbs field.
Index: config/mips/frame-header-opt.c
===================================================================
--- config/mips/frame-header-opt.c	(revision 248871)
+++ config/mips/frame-header-opt.c	(working copy)
@@ -32,6 +32,7 @@  along with GCC; see the file COPYING3.
 #include "tree-pass.h"
 #include "target.h"
 #include "target-globals.h"
+#include "profile-count.h"
 #include "cfg.h"
 #include "cgraph.h"
 #include "function.h"
Index: config/riscv/riscv.c
===================================================================
--- config/riscv/riscv.c	(revision 248871)
+++ config/riscv/riscv.c	(working copy)
@@ -73,6 +73,7 @@  along with GCC; see the file COPYING3.
 #include "common/common-target.h"
 #include "langhooks.h"
 #include "dominance.h"
+#include "profile-count.h"
 #include "cfg.h"
 #include "cfgrtl.h"
 #include "cfganal.h"