From f1c570a65fd6f54d7e67f429189189c69dea9f2e Mon Sep 17 00:00:00 2001 From: rsandifo Date: Sun, 15 Jun 2014 07:32:43 +0000 Subject: gcc/ * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros. * cse.c (cse_extended_basic_block): Use them. * dce.c (mark_artificial_use): Likewise. * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise. (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise. (df_chain_remove_problem, df_chain_bb_dump): Likewise. (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise. (df_simulate_initialize_backwards): Likewise. (df_simulate_finalize_backwards): Likewise. (df_simulate_initialize_forwards): Likewise. (df_md_simulate_artificial_defs_at_top): Likewise. * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise. * regrename.c (init_rename_info): Likewise. * regstat.c (regstat_bb_compute_ri): Likewise. (regstat_bb_compute_calls_crossed): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211679 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/df.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gcc/df.h') diff --git a/gcc/df.h b/gcc/df.h index 809175c62a4..482ac930c9c 100644 --- a/gcc/df.h +++ b/gcc/df.h @@ -775,6 +775,14 @@ struct df_d #define FOR_EACH_INSN_EQ_USE(ITER, INSN) \ FOR_EACH_INSN_INFO_EQ_USE(ITER, DF_INSN_INFO_GET (INSN)) +#define FOR_EACH_ARTIFICIAL_USE(ITER, BB_INDEX) \ + for (df_ref *ITER##_ = df_get_artificial_uses (BB_INDEX); \ + (ITER = *ITER##_); ++ITER##_) + +#define FOR_EACH_ARTIFICIAL_DEF(ITER, BB_INDEX) \ + for (df_ref *ITER##_ = df_get_artificial_defs (BB_INDEX); \ + (ITER = *ITER##_); ++ITER##_) + /* An obstack for bitmap not related to specific dataflow problems. This obstack should e.g. be used for bitmaps with a short life time such as temporary bitmaps. This obstack is declared in df-core.c. */ -- cgit v1.2.1