This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH]: Fix incorrect comment in tree-ssa-dse.c
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 07 Apr 2005 14:37:02 -0400
- Subject: [PATCH]: Fix incorrect comment in tree-ssa-dse.c
The comment about "no virtual uses" is inconsistent with the code (which
checks for virtual defs), and the code is obviously correct.
So i'm committing this as obvious.
--Dan
2005-04-07 Daniel Berlin <dberlin@dberlin.org>
* tree-ssa-dse.c (dse_optimize_stmt): Fix incorrect comment.
Index: tree-ssa-dse.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-dse.c,v
retrieving revision 2.18
diff -u -p -r2.18 tree-ssa-dse.c
--- tree-ssa-dse.c 5 Apr 2005 19:05:08 -0000 2.18
+++ tree-ssa-dse.c 7 Apr 2005 18:34:52 -0000
@@ -181,7 +181,7 @@ dse_optimize_stmt (struct dom_walk_data
get_stmt_operands (stmt);
v_may_defs = V_MAY_DEF_OPS (ann);
- /* If this statement has no virtual uses, then there is nothing
+ /* If this statement has no virtual defs, then there is nothing
to do. */
if (NUM_V_MAY_DEFS (v_may_defs) == 0)
return;