diff options
author | Mostafa Hagog <mustafa@il.ibm.com> | 2003-10-17 16:16:45 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2003-10-17 16:16:45 +0000 |
commit | f5f2e3cd9bed8f3c943d0558ad8b1a4c41efcc86 (patch) | |
tree | a29aa6dd07abdea8e834684eb42d8d5349352a34 /gcc/toplev.c | |
parent | 9579624e7258fc1c5cf8e79a63bbe950deae7c17 (diff) | |
download | gcc-f5f2e3cd9bed8f3c943d0558ad8b1a4c41efcc86.zip gcc-f5f2e3cd9bed8f3c943d0558ad8b1a4c41efcc86.tar.gz gcc-f5f2e3cd9bed8f3c943d0558ad8b1a4c41efcc86.tar.bz2 |
common.opt: Add description of the new -fgcse-las flag.
2003-10-17 Mostafa Hagog <mustafa@il.ibm.com>
* common.opt: Add description of the new -fgcse-las flag.
* flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
* gcse.c (hash_scan_set): Handle the case of store expression and
insert the memory expression to the hash table, this way we make it
possible to discover redundant loads after stores and remove them.
(pre_insert_copy_insn): moved the call to update_ld_motion_stores,
to pre_insert_copies, it is not the correct place to call it after
adding stores to be in the available expression hash table.
(pre_insert_copies): Added the call to update_ld_motion_stores when
one or more copies were inserted.
* opts.c (common_handle_option): Handle the -fgcse-las flag.
* toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
* doc/invoke.tex: Document new -fgcse-las flag.
From-SVN: r72612
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index e711135..c1a05f6 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -697,6 +697,11 @@ int flag_gcse_lm = 1; int flag_gcse_sm = 1; +/* Nonzero if we want to perfrom redundant load after store elimination + in gcse. */ + +int flag_gcse_las = 1; + /* Perform target register optimization before prologue / epilogue threading. */ @@ -1075,6 +1080,7 @@ static const lang_independent_options f_options[] = {"gcse", &flag_gcse, 1 }, {"gcse-lm", &flag_gcse_lm, 1 }, {"gcse-sm", &flag_gcse_sm, 1 }, + {"gcse-las", &flag_gcse_las, 1 }, {"branch-target-load-optimize", &flag_branch_target_load_optimize, 1 }, {"branch-target-load-optimize2", &flag_branch_target_load_optimize2, 1 }, {"loop-optimize", &flag_loop_optimize, 1 }, |