This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] tree-ssa-alias.c: Remove a call to get_stmt_operands.


Hi,

Attached is a patch to remove a call to get_stmt_operands.

Now that the immediate use has been integrated, operands are no longer
lazily updated, so get_stmt_operands has become a no-op.

Tested on i686-pc-linux-gnu.  Committed as preapproved by Diego on
IRC.

Kazu Hirata

2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>

	* tree-ssa-alias.c (init_alias_info): Remove a call to
	get_stmt_operands.

Index: tree-ssa-alias.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-alias.c,v
retrieving revision 2.85
diff -u -d -p -r2.85 tree-ssa-alias.c
--- tree-ssa-alias.c	11 Apr 2005 22:06:42 -0000	2.85
+++ tree-ssa-alias.c	15 Apr 2005 01:32:32 -0000
@@ -505,21 +505,7 @@ init_alias_info (void)
   if (aliases_computed_p)
     {
       unsigned i;
-      basic_block bb;
   
-     /* Make sure that every statement has a valid set of operands.
-	If a statement needs to be scanned for operands while we
-	compute aliases, it may get erroneous operands because all
-	the alias relations are not built at that point.
-	FIXME: This code will become obsolete when operands are not
-	lazily updated.  */
-      FOR_EACH_BB (bb)
-	{
-	  block_stmt_iterator si;
-	  for (si = bsi_start (bb); !bsi_end_p (si); bsi_next (&si))
-	    get_stmt_operands (bsi_stmt (si));
-	}
-
       /* Similarly, clear the set of addressable variables.  In this
 	 case, we can just clear the set because addressability is
 	 only computed here.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]