OSDN Git Service

* tree-ssa-ccp.c (maybe_fold_stmt_indirect): Use STRIP_TYPE_NOPS
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 May 2005 14:14:19 +0000 (14:14 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 May 2005 14:14:19 +0000 (14:14 +0000)
        rather than STRIP_NOPS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99158 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-ssa-ccp.c

index 285cb00..682b0ea 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-03  Richard Guenther  <rguenth@gcc.gnu.org>
+
+       * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Use STRIP_TYPE_NOPS
+       rather than STRIP_NOPS.
+
 2005-05-03  Jakub Jelinek  <jakub@redhat.com>
 
        PR rtl-optimization/21330
index 14b5a3d..2d16957 100644 (file)
@@ -1585,7 +1585,7 @@ maybe_fold_stmt_indirect (tree expr, tree base, tree offset)
      substitutions.  Fold that down to one.  Remove NON_LVALUE_EXPRs that
      are sometimes added.  */
   base = fold (base);
-  STRIP_NOPS (base);
+  STRIP_TYPE_NOPS (base);
   TREE_OPERAND (expr, 0) = base;
 
   /* One possibility is that the address reduces to a string constant.  */