projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e46e955
)
when we can do it for tuples, we can do it for Ids too
author
Matthias Braun
<matze@braunis.de>
Tue, 30 Sep 2008 08:08:47 +0000
(08:08 +0000)
committer
Matthias Braun
<matze@braunis.de>
Tue, 30 Sep 2008 08:08:47 +0000
(08:08 +0000)
[r22356]
ir/opt/scalar_replace.c
patch
|
blob
|
history
diff --git
a/ir/opt/scalar_replace.c
b/ir/opt/scalar_replace.c
index
fbe05ff
..
b0d76ca
100644
(file)
--- a/
ir/opt/scalar_replace.c
+++ b/
ir/opt/scalar_replace.c
@@
-230,6
+230,13
@@
int is_address_taken(ir_node *sel)
*/
return 1;
+ case iro_Id: {
+ int res = is_address_taken(succ);
+ if (res)
+ return 1;
+ break;
+ }
+
case iro_Tuple:
/* Non-optimized Tuple, happens in inlining */
for (input_nr = get_Tuple_n_preds(succ) - 1; input_nr >= 0; --input_nr) {