comparison gcc/tree-phinodes.c @ 67:f6334be47118

update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 22 Mar 2011 17:18:12 +0900
parents b7f97abdc517
children 04ced10e8804
comparison
equal deleted inserted replaced
65:65488c3d617d 67:f6334be47118
1 /* Generic routines for manipulating PHIs 1 /* Generic routines for manipulating PHIs
2 Copyright (C) 2003, 2005, 2007, 2008 Free Software Foundation, Inc. 2 Copyright (C) 2003, 2005, 2007, 2008, 2009, 2010
3 Free Software Foundation, Inc.
3 4
4 This file is part of GCC. 5 This file is part of GCC.
5 6
6 GCC is free software; you can redistribute it and/or modify 7 GCC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 8 it under the terms of the GNU General Public License as published by
24 #include "tree.h" 25 #include "tree.h"
25 #include "rtl.h" /* FIXME: Only for ceil_log2, of all things... */ 26 #include "rtl.h" /* FIXME: Only for ceil_log2, of all things... */
26 #include "ggc.h" 27 #include "ggc.h"
27 #include "basic-block.h" 28 #include "basic-block.h"
28 #include "tree-flow.h" 29 #include "tree-flow.h"
29 #include "toplev.h" 30 #include "diagnostic-core.h"
30 #include "gimple.h" 31 #include "gimple.h"
31 32
32 /* Rewriting a function into SSA form can create a huge number of PHIs 33 /* Rewriting a function into SSA form can create a huge number of PHIs
33 many of which may be thrown away shortly after their creation if jumps 34 many of which may be thrown away shortly after their creation if jumps
34 were threaded through PHI nodes. 35 were threaded through PHI nodes.
151 phi_nodes_reused++; 152 phi_nodes_reused++;
152 #endif 153 #endif
153 } 154 }
154 else 155 else
155 { 156 {
156 phi = (gimple) ggc_alloc (size); 157 phi = ggc_alloc_gimple_statement_d (size);
157 #ifdef GATHER_STATISTICS 158 #ifdef GATHER_STATISTICS
158 phi_nodes_created++; 159 phi_nodes_created++;
159 { 160 {
160 enum gimple_alloc_kind kind = gimple_alloc_kind (GIMPLE_PHI); 161 enum gimple_alloc_kind kind = gimple_alloc_kind (GIMPLE_PHI);
161 gimple_alloc_counts[(int) kind]++; 162 gimple_alloc_counts[(int) kind]++;