This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] Minor cleanup in get_expr_operands
- From: law at redhat dot com
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 14 Aug 2003 22:28:11 -0600
- Subject: [tree-ssa] Minor cleanup in get_expr_operands
- Reply-to: law at redhat dot com
A trivial cleanup. There's no reason to treat *0 specially here.
* tree-dfa.c (get_expr_operands): Do not special case *0;
Index: tree-dfa.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-dfa.c,v
retrieving revision 1.1.4.144
diff -c -3 -p -r1.1.4.144 tree-dfa.c
*** tree-dfa.c 11 Aug 2003 02:30:56 -0000 1.1.4.144
--- tree-dfa.c 15 Aug 2003 04:25:48 -0000
*************** get_expr_operands (tree stmt, tree *expr
*** 368,374 ****
add_stmt_operand (&TREE_OPERAND (ptr, 0), stmt, flags, prev_vops);
return;
}
! else if (TREE_CONSTANT (ptr) && !integer_zerop (ptr))
{
/* If a constant is used as a pointer, we can't generate a real
operand for it but we mark the statement volatile to prevent
--- 368,374 ----
add_stmt_operand (&TREE_OPERAND (ptr, 0), stmt, flags, prev_vops);
return;
}
! else if (TREE_CONSTANT (ptr))
{
/* If a constant is used as a pointer, we can't generate a real
operand for it but we mark the statement volatile to prevent