summaryrefslogtreecommitdiffstats
path: root/gcc/tree-ssa-operands.c
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-29 17:15:38 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-29 17:15:38 +0000
commit030d6db5c00398de83059e9835d7d7882f6437c2 (patch)
tree7220d1120c147f0275d6a78b7a6a7a25a2396916 /gcc/tree-ssa-operands.c
parent55b73f77ed32874033cf75ce8dbb220d09ecc178 (diff)
downloadppe42-gcc-030d6db5c00398de83059e9835d7d7882f6437c2.tar.gz
ppe42-gcc-030d6db5c00398de83059e9835d7d7882f6437c2.zip
* tree-ssa-operands.c (get_expr_operands): Revert changes
to ADDR_EXPR processing introduced by: 2004-06-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> * tree-ssa-operands.c (get_expr_operands): Minor rearrangements. testsuite/ChangeLog * gcc.dg/tree-ssa/20040729-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85306 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r--gcc/tree-ssa-operands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c
index a9e864ed8c1..4b1e37f2b3f 100644
--- a/gcc/tree-ssa-operands.c
+++ b/gcc/tree-ssa-operands.c
@@ -859,9 +859,9 @@ get_expr_operands (tree stmt, tree *expr_p, int flags, voperands_t prev_vops)
of interest to some passes (e.g. alias resolution). */
add_stmt_operand (expr_p, stmt, 0, NULL);
- /* If the address is constant (invariant is not sufficient), there will
- be no interesting variable references inside. */
- if (TREE_CONSTANT (expr))
+ /* If the address is invariant, there may be no interesting variable
+ references inside. */
+ if (is_gimple_min_invariant (expr))
return;
/* There should be no VUSEs created, since the referenced objects are
OpenPOWER on IntegriCloud