diff options
author | Michael Matz <matz@suse.de> | 2007-09-10 07:40:30 +0000 |
---|---|---|
committer | Michael Matz <matz@gcc.gnu.org> | 2007-09-10 07:40:30 +0000 |
commit | a5828d1e531377c4a8a279972c6c46d75da1b05d (patch) | |
tree | c03c05f82a86dbfb3dca7ceb9ce0a4d39d1efdbc /gcc/common.opt | |
parent | cf369845fd042cc7bd25cb8b824857af6f22f446 (diff) | |
download | gcc-a5828d1e531377c4a8a279972c6c46d75da1b05d.zip gcc-a5828d1e531377c4a8a279972c6c46d75da1b05d.tar.gz gcc-a5828d1e531377c4a8a279972c6c46d75da1b05d.tar.bz2 |
tree-pass.h (pass_cselim): Declare new pass.
* tree-pass.h (pass_cselim): Declare new pass.
* passes.c (init_optimization_passes): Link in pass_cselim.
* tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Renamed from
tree_ssa_phiopt; add do_store_elim parameter, handle it by calling
cond_store_replacement.
(condstoretemp): New static variable.
(cond_store_replacement): New function.
(tree_ssa_phiopt, tree_ssa_cs_elim): New wrappers around
tree_ssa_phiopt_worker.
(struct name_to_bb): New.
(get_non_trapping, name_to_bb_hash, name_to_bb_eq, add_or_mark_expr,
nt_init_block, nt_fini_block): New static functions.
(seen_ssa_names, nontrap_set): New static variables.
(gate_cselim, pass_cselim): Define new pass.
* common.opt (ftree-cselim): New flag.
* toplev.c (process_options): Set flag_tree_cselim if required.
From-SVN: r128324
Diffstat (limited to 'gcc/common.opt')
-rw-r--r-- | gcc/common.opt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index c53a93e..a2afcf2 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -1052,6 +1052,10 @@ ftree-store-copy-prop Common Report Var(flag_tree_store_copy_prop) Optimization Enable copy propagation for stores and loads +ftree-cselim +Common Report Var(flag_tree_cselim) Init(2) Optimization +Transform condition stores into unconditional ones + ftree-dce Common Report Var(flag_tree_dce) Optimization Enable SSA dead code elimination optimization on trees |