Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
6d07016c
Commit
6d07016c
authored
Nov 06, 2015
by
yb9976
Browse files
Loop inversion: Conservatively create loop phis.
This fixes opt/fehler312.c.
parent
2ef53aad
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/loop.c
View file @
6d07016c
...
...
@@ -357,7 +357,8 @@ static ir_node *search_def_and_create_phis(ir_node *const block, ir_mode *const
for
(
int
i
=
0
;
i
<
n_cfgpreds
;
++
i
)
in
[
i
]
=
new_r_Dummy
(
irg
,
mode
);
ir_node
*
const
phi
=
new_r_Phi
(
block
,
n_cfgpreds
,
in
,
mode
);
ir_node
*
const
phi
=
mode
==
mode_M
?
new_r_Phi_loop
(
block
,
n_cfgpreds
,
in
)
:
new_r_Phi
(
block
,
n_cfgpreds
,
in
,
mode
);
/* Important: always keep block phi list up to date. */
add_Block_phi
(
block
,
phi
);
DB
((
dbg
,
LEVEL_5
,
"ssa phi creation: link new phi %N to block %N
\n
"
,
phi
,
block
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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