re PR tree-optimization/16461 (ICE: expected ssa_name, have integer_cst in independen...
authorZdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
Tue, 13 Jul 2004 01:03:21 +0000 (03:03 +0200)
committerZdenek Dvorak <rakdver@gcc.gnu.org>
Tue, 13 Jul 2004 01:03:21 +0000 (01:03 +0000)
PR tree-optimization/16461
* tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
arguments of phi nodes.

From-SVN: r84595

gcc/ChangeLog
gcc/tree-tailcall.c

index 66da58a362edd8d9cb093fe3d3630f0b35bfee96..a0bdea81285b0205629e1e75f4ce417de28f74e2 100644 (file)
@@ -1,3 +1,9 @@
+2004-07-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
+
+       PR tree-optimization/16461
+       * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
+       arguments of phi nodes.
+
 2004-07-12  Devang Patel  <dpatel@apple.com>
 
        * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
index fdd010f160cafa680de0e8b05c63384f933016ab..f69bf3449f2654b84d57f8d280840113a6a984df 100644 (file)
@@ -238,6 +238,11 @@ independent_of_stmt_p (tree expr, tree at, block_stmt_iterator bsi)
        abort ();
 
       expr = PHI_ARG_DEF_FROM_EDGE (at, e);
+      if (TREE_CODE (expr) != SSA_NAME)
+       {
+         /* The value is a constant.  */
+         break;
+       }
     }
 
   /* Unmark the blocks.  */