projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38e237a
)
make add_missing_keeps more robust in case of SwitchJumps
author
Matthias Braun
<matze@braunis.de>
Fri, 23 Jul 2010 12:00:40 +0000
(12:00 +0000)
committer
Matthias Braun
<matze@braunis.de>
Fri, 23 Jul 2010 12:00:40 +0000
(12:00 +0000)
[r27791]
ir/be/beabihelper.c
patch
|
blob
|
history
diff --git
a/ir/be/beabihelper.c
b/ir/be/beabihelper.c
index
0022c37
..
ce6f98a
100644
(file)
--- a/
ir/be/beabihelper.c
+++ b/
ir/be/beabihelper.c
@@
-400,13
+400,14
@@
static void add_missing_keep_walker(ir_node *node, void *data)
rbitset_alloca(found_projs, n_outs);
foreach_out_edge(node, edge) {
ir_node *succ = get_edge_src_irn(edge);
+ ir_mode *mode = get_irn_mode(succ);
int pn;
/* The node could be kept */
if (is_End(succ) || is_Anchor(succ))
continue;
- if (
get_irn_mode(succ) == mode_M
)
+ if (
mode == mode_M || mode == mode_X
)
continue;
pn = get_Proj_proj(succ);