summaryrefslogtreecommitdiff
path: root/gcc/tree-sra.c
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-13 19:48:53 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-13 19:48:53 +0000
commita6774fc3bcb00587c9f5d8064d2b3bb8264c2ecb (patch)
tree0ba757fc93df83e4cc53918ff5b830d9e09c1a95 /gcc/tree-sra.c
parent3cc4fffdc5820b0480484ce728b0083d3a8a1f17 (diff)
downloadgcc-a6774fc3bcb00587c9f5d8064d2b3bb8264c2ecb.tar.gz
* tree-sra.c (tree_sra): Update documentation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83064 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-sra.c')
-rw-r--r--gcc/tree-sra.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c
index 219c8148985..060b7e84642 100644
--- a/gcc/tree-sra.c
+++ b/gcc/tree-sra.c
@@ -1130,16 +1130,14 @@ dump_sra_map (FILE *f)
re-writes non-aliased structure references into scalar temporaries. The
goal is to expose some/all structures to the scalar optimizers.
- FNDECL is the function to process.
+ Scalarization proceeds in two main phases. First, every structure
+ referenced in the program that complies with can_be_scalarized_p is
+ marked for scalarization (find_candidates_for_sra).
- VARS_TO_RENAME_P is a pointer to the set of variables that need to be
- renamed into SSA after this pass is done. These are going to be all the
- new scalars created by the SRA process. Notice that since this pass
- creates new variables, the bitmap representing all the variables in the
- program will be re-sized here.
-
- PHASE indicates which dump file from the DUMP_FILES array to use when
- dumping debugging information.
+ Second, a mapping between structure fields and scalar temporaries so
+ that every time a particular field of a particular structure is
+ referenced in the code, we replace it with its corresponding scalar
+ temporary (scalarize_structures).
TODO