summaryrefslogtreecommitdiff
path: root/gcc/flow.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-02 00:02:24 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-02 00:02:24 +0000
commite6423f40ef68a8da2088ae7893bfd8e78e852a7a (patch)
tree6ad8846d9a4902319ad83698ee22fa1c344d9edb /gcc/flow.c
parentc50eefd14d7db8c007ba62249cc58830184bb2ed (diff)
downloadgcc-e6423f40ef68a8da2088ae7893bfd8e78e852a7a.tar.gz
* flow.c (calculate_global_regs_live): Skip for_each_successor_phi
if not in SSA form. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33597 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flow.c')
-rw-r--r--gcc/flow.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index 73cb173ba81..f0cee82541b 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)
{