tree-flow-inline.h (referenced_var): Remove.
authorRichard Guenther <rguenther@suse.de>
Wed, 1 Aug 2012 17:25:56 +0000 (17:25 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 1 Aug 2012 17:25:56 +0000 (17:25 +0000)
commitd94b820b51b38be47a7b2cb71fb80bb0ae7c6ce3
treed232b12d9096969f32c887b0016fe2cc6b46faf4
parentece401eecc53b5560f490ec2899f7180f8bf10b6
tree-flow-inline.h (referenced_var): Remove.

2012-08-01  Richard Guenther  <rguenther@suse.de>

* tree-flow-inline.h (referenced_var): Remove.
* tree-ssa-coalesce.c (create_outofssa_var_map): Remove duplicate
checking code.
* tree-sra.c (candidates): New global hashtable.
(candidate): New function.
(sra_initialize): Initialize candidates.
(sra_deinitialize): Free candidates.
(disqualify_candidate): Remove candidate from candidates.
(maybe_add_sra_candidate): New function.
(find_var_candidates): Walk over all local decls and parameters,
add candidates to candidates hashtable.
(find_param_candidates): Add candidates to candidates hashtable.
(analyze_all_variable_accesses): Use candidate instead of
referenced_var.

From-SVN: r190047
gcc/ChangeLog
gcc/tree-flow-inline.h
gcc/tree-sra.c
gcc/tree-ssa-coalesce.c