diff options
author | Diego Novillo <dnovillo@redhat.com> | 2004-07-29 17:15:38 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@gcc.gnu.org> | 2004-07-29 13:15:38 -0400 |
commit | d397dbcd99452ed440e1a99495436af91513a5ac (patch) | |
tree | 7220d1120c147f0275d6a78b7a6a7a25a2396916 /gcc/tree-ssa-operands.c | |
parent | 9d6e0be1f607c2289a000018eac74ff322ff3f52 (diff) | |
download | gcc-d397dbcd99452ed440e1a99495436af91513a5ac.zip gcc-d397dbcd99452ed440e1a99495436af91513a5ac.tar.gz gcc-d397dbcd99452ed440e1a99495436af91513a5ac.tar.bz2 |
tree-ssa-operands.c (get_expr_operands): Revert changes to ADDR_EXPR processing introduced by...
* 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.
From-SVN: r85306
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r-- | gcc/tree-ssa-operands.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c index a9e864e..4b1e37f 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 |