This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[tuples][patch] Dead Store Elimination


Hi.
Two days ago I sent a patch with tuplifies simple dse.
This patch tuplifies pass_dse AND pass_simple_dse.
Tested on amd64-linux, no regression, several test cases fixed.

* tree-ssa-dse.c (execute_simple_dse): #if 0 removed, bitmap_empty_p condition
added. (get_stmt_uid): Removed. (record_voperand_set): Arguments changed.
(dse_initialize_block_local_data, memory_ssa_name_same, memory_address_same,
get_kill_of_stmt_lhs, dse_possible_dead_store_p, dse_optimize_stmt, dse_record_phis,
dse_finalize_block, tree_ssa_dse): Tuplified.
* passes.c (init_optimization_passes): pass_simple_dse and pass_dse enabled.
* testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: {dg-final} changed.
* testsuite/gcc.dg/tree-ssa/pr30375.c: {dg-final} changed.


--
Jakub Staszak

Attachment: tuples_dse_both.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]