Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
a3ff5d70
Commit
a3ff5d70
authored
Sep 17, 2009
by
yb9976
Browse files
Start block isn't a special case anymore (and now get the old node nr).
[r26537]
parent
10f7b7f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/betranshlp.c
View file @
a3ff5d70
...
...
@@ -327,18 +327,9 @@ static void transform_nodes(ir_graph *irg, arch_pretrans_nodes *pre_transform)
static
ir_node
*
gen_Block
(
ir_node
*
node
)
{
ir_graph
*
irg
=
current_ir_graph
;
dbg_info
*
dbgi
=
get_irn_dbg_info
(
node
);
ir_node
*
old_start_block
=
get_irn_n
(
env
.
old_anchor
,
anchor_start_block
);
ir_node
*
macroblock
=
get_Block_MacroBlock
(
node
);
ir_node
*
block
;
/*
* We replace the ProjX from the start node with a jump,
* so the startblock has no preds anymore now
*/
if
(
node
==
old_start_block
)
{
return
new_rd_Block
(
dbgi
,
irg
,
0
,
NULL
);
}
/* we use the old blocks for now, because jumps allow cycles in the graph
* we have to fix this later */
block
=
new_ir_node
(
dbgi
,
irg
,
NULL
,
get_irn_op
(
node
),
get_irn_mode
(
node
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment