aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>2000-05-01 17:02:24 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-05-01 17:02:24 -0700
commit1868a0d4dac2d253829999a7563908431d6874d3 (patch)
tree6ad8846d9a4902319ad83698ee22fa1c344d9edb /gcc
parent8be9eb00e597711234653e0f9647f63f1196b88f (diff)
downloadgcc-1868a0d4dac2d253829999a7563908431d6874d3.zip
gcc-1868a0d4dac2d253829999a7563908431d6874d3.tar.gz
gcc-1868a0d4dac2d253829999a7563908431d6874d3.tar.bz2
flow.c (calculate_global_regs_live): Skip for_each_successor_phi if not in SSA form.
* flow.c (calculate_global_regs_live): Skip for_each_successor_phi if not in SSA form. From-SVN: r33597
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/flow.c5
2 files changed, 5 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e616f69..04085c8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/flow.c b/gcc/flow.c
index 73cb173..f0cee82 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -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)
{