summaryrefslogtreecommitdiff
path: root/gcc/flags.h
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-17 16:16:45 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-17 16:16:45 +0000
commit5c47e4149622661208eb581113e3e33f540ac027 (patch)
treea29aa6dd07abdea8e834684eb42d8d5349352a34 /gcc/flags.h
parentc04baa536b30b91e31688f978004d36e589bbe44 (diff)
downloadgcc-5c47e4149622661208eb581113e3e33f540ac027.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72612 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flags.h')
-rw-r--r--gcc/flags.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/flags.h b/gcc/flags.h
index 93600fbd15f..2a1a10ff679 100644
--- a/gcc/flags.h
+++ b/gcc/flags.h
@@ -675,6 +675,11 @@ extern int flag_gcse_lm;
extern int flag_gcse_sm;
+/* Nonzero if we want to perform redundant load-after-store elimination
+ in gcse. */
+
+extern int flag_gcse_las;
+
/* Perform branch target register optimization before prologue / epilogue
threading. */