diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-15 07:32:43 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-15 07:32:43 +0000 |
commit | f1c570a65fd6f54d7e67f429189189c69dea9f2e (patch) | |
tree | 12094325c8b60fc5ff9b26dd40bcb17e41bcfaa5 /gcc/df.h | |
parent | be10bb5abe53bc4f13d9085f3e03a238928dfd42 (diff) | |
download | gcc-f1c570a65fd6f54d7e67f429189189c69dea9f2e.tar.gz |
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
Diffstat (limited to 'gcc/df.h')
-rw-r--r-- | gcc/df.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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. */ |