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]

[tree-ssa] Call get_stmt_operands from optimize_stmt


Hello,

it happened to me that to optimize_stmt a modified statement arrived.
This caused a problem, since use_ops were set wrongly, the change was
done to nowhere and the variable there stayed unitialized.

Zdenek

	* tree-ssa-dom.c (optimize_stmt): Call get_stmt_operands.

Index: tree-ssa-dom.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssa-dom.c,v
retrieving revision 1.1.2.20
diff -c -3 -p -r1.1.2.20 tree-ssa-dom.c
*** tree-ssa-dom.c	13 Aug 2003 17:47:32 -0000	1.1.2.20
--- tree-ssa-dom.c	13 Aug 2003 18:48:09 -0000
*************** optimize_stmt (block_stmt_iterator si, v
*** 510,515 ****
--- 500,506 ----
    if (IS_EMPTY_STMT (stmt))
      return;
  
+   get_stmt_operands (stmt);
    ann = stmt_ann (stmt);
    opt_stats.num_stmts++;
  


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