aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-operands.c
diff options
context:
space:
mode:
authorSebastian Pop <pop@cri.ensmp.fr>2005-12-14 15:20:55 +0100
committerSebastian Pop <spop@gcc.gnu.org>2005-12-14 14:20:55 +0000
commitd14c5160c116087d345ca2f72c14ab25bf494b87 (patch)
treeaeb13b19e993b288e4c1d019d6c3728e0ffa5ef4 /gcc/tree-ssa-operands.c
parent5216df748ac5f68468f06e4cfded3c42d6c3b7c9 (diff)
downloadgcc-d14c5160c116087d345ca2f72c14ab25bf494b87.zip
gcc-d14c5160c116087d345ca2f72c14ab25bf494b87.tar.gz
gcc-d14c5160c116087d345ca2f72c14ab25bf494b87.tar.bz2
tree-ssa-operands.c (build_ssa_operands): Update leading comment.
* tree-ssa-operands.c (build_ssa_operands): Update leading comment. From-SVN: r108512
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r--gcc/tree-ssa-operands.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c
index 72c2d71..c75f30c 100644
--- a/gcc/tree-ssa-operands.c
+++ b/gcc/tree-ssa-operands.c
@@ -791,27 +791,7 @@ parse_ssa_operands (tree stmt)
}
}
-/* Create an operands cache for STMT, returning it in NEW_OPS. OLD_OPS are the
- original operands, and if ANN is non-null, appropriate stmt flags are set
- in the stmt's annotation. If ANN is NULL, this is not considered a "real"
- stmt, and none of the operands will be entered into their respective
- immediate uses tables. This is to allow stmts to be processed when they
- are not actually in the CFG.
-
- Note that some fields in old_ops may change to NULL, although none of the
- memory they originally pointed to will be destroyed. It is appropriate
- to call free_stmt_operands() on the value returned in old_ops.
-
- The rationale for this: Certain optimizations wish to examine the difference
- between new_ops and old_ops after processing. If a set of operands don't
- change, new_ops will simply assume the pointer in old_ops, and the old_ops
- pointer will be set to NULL, indicating no memory needs to be cleared.
- Usage might appear something like:
-
- old_ops_copy = old_ops = stmt_ann(stmt)->operands;
- build_ssa_operands (stmt, NULL, &old_ops, &new_ops);
- <* compare old_ops_copy and new_ops *>
- free_ssa_operands (old_ops); */
+/* Create an operands cache for STMT. */
static void
build_ssa_operands (tree stmt)