This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] Call get_stmt_operands from optimize_stmt
- From: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Cc: dnovillo at redhat dot com
- Date: Wed, 13 Aug 2003 20:54:01 +0200
- Subject: [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++;