projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
188a178
)
- do not treat Constants as live-ins: this assures, that a
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 30 Oct 2008 02:13:58 +0000
(
02:13
+0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 30 Oct 2008 02:13:58 +0000
(
02:13
+0000)
meltet block has the same number of inputs like the original
[r23306]
ir/opt/opt_blocks.c
patch
|
blob
|
history
diff --git
a/ir/opt/opt_blocks.c
b/ir/opt/opt_blocks.c
index
647f51d
..
38b2418
100644
(file)
--- a/
ir/opt/opt_blocks.c
+++ b/
ir/opt/opt_blocks.c
@@
-466,10
+466,13
@@
void propagate_blocks(partition_t *part, environment_t *env) {
if (block != bl->block) {
p_node = create_node(pred, env);
- p_node->is_input = 1;
add_node(bl, p_node);
- if (! is_Phi(irn))
- add_pair(bl, irn, i, env);
+ /* do not threat Constants like live-ins */
+ if (! is_irn_constlike(irn)) {
+ p_node->is_input = 1;
+ if (! is_Phi(irn))
+ add_pair(bl, irn, i, env);
+ }
} else if (! irn_visited_else_mark(pred)) {
/* not yet visited, ok */
p_node = create_node(pred, env);