diff options
author | Richard Biener <rguenther@suse.de> | 2018-08-24 11:17:16 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2018-08-24 11:17:16 +0000 |
commit | e144a2b3066ecad2a7c934b1cd437d2afad0018f (patch) | |
tree | 1bf53ff1e85aa724075fc8e89e510ebad078c63e /gcc/cfg.c | |
parent | 6a84c265a32e6f407cf6712040df65527ffcf445 (diff) | |
download | gcc-e144a2b3066ecad2a7c934b1cd437d2afad0018f.zip gcc-e144a2b3066ecad2a7c934b1cd437d2afad0018f.tar.gz gcc-e144a2b3066ecad2a7c934b1cd437d2afad0018f.tar.bz2 |
cfg.h (struct control_flow_graph): Add edge_flags_allocated and bb_flags_allocated members.
2018-08-24 Richard Biener <rguenther@suse.de>
* cfg.h (struct control_flow_graph): Add edge_flags_allocated and
bb_flags_allocated members.
(auto_flag): New RAII class for allocating flags.
(auto_edge_flag): New RAII class for allocating edge flags.
(auto_bb_flag): New RAII class for allocating bb flags.
* cfgloop.c (verify_loop_structure): Allocate temporary edge
flag dynamically.
* cfganal.c (dfs_enumerate_from): Remove use of visited sbitmap
in favor of temporarily allocated BB flag.
* hsa-brig.c: Re-order includes.
* hsa-dump.c: Likewise.
* hsa-regalloc.c: Likewise.
* print-rtl.c: Likewise.
* profile-count.c: Likewise.
From-SVN: r263830
Diffstat (limited to 'gcc/cfg.c')
-rw-r--r-- | gcc/cfg.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -79,6 +79,8 @@ init_flow (struct function *the_fun) = EXIT_BLOCK_PTR_FOR_FN (the_fun); EXIT_BLOCK_PTR_FOR_FN (the_fun)->prev_bb = ENTRY_BLOCK_PTR_FOR_FN (the_fun); + the_fun->cfg->edge_flags_allocated = EDGE_ALL_FLAGS; + the_fun->cfg->bb_flags_allocated = BB_ALL_FLAGS; } /* Helper function for remove_edge and clear_edges. Frees edge structure |