flow.c (calculate_global_regs_live): Skip for_each_successor_phi if not in SSA form.
authorRichard Henderson <rth@cygnus.com>
Tue, 2 May 2000 00:02:24 +0000 (17:02 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 2 May 2000 00:02:24 +0000 (17:02 -0700)
        * flow.c (calculate_global_regs_live): Skip for_each_successor_phi
        if not in SSA form.

From-SVN: r33597

gcc/ChangeLog
gcc/flow.c

index e616f69fd67428662221916ecc5015e3bab576c4..04085c8f47f8b1f2fbf26eb59c103f299273967e 100644 (file)
@@ -2,7 +2,8 @@
 
        * calls.c (expand_call): Don't emit reg notes for a sibcall.
 
-2000-05-01  Richard Henderson  <rth@cygnus.com>
+       * flow.c (calculate_global_regs_live): Skip for_each_successor_phi
+       if not in SSA form.
 
        * ifcvt.c (if_convert): Only verify_flow_info if ENABLE_CHECKING.
 
index 73cb173ba81fe25f7fd4f77ddbbe0705a884d340..f0cee82541b9edbce3fbb2b201e0c01c9dc51be7 100644 (file)
@@ -3086,8 +3086,9 @@ calculate_global_regs_live (blocks_in, blocks_out, flags)
         global_live_at_start, since they are live only along a
         particular edge.  Set those regs that are live because of a
         phi node alternative corresponding to this particular block.  */
-      for_each_successor_phi (bb, &set_phi_alternative_reg, 
-                             new_live_at_end);
+      if (in_ssa_form)
+       for_each_successor_phi (bb, &set_phi_alternative_reg, 
+                               new_live_at_end);
 
       if (bb == ENTRY_BLOCK_PTR)
        {