projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7654c7b
)
used new is_return
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Fri, 3 Mar 2006 16:58:34 +0000
(16:58 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Fri, 3 Mar 2006 16:58:34 +0000
(16:58 +0000)
[r7400]
ir/opt/return.c
patch
|
blob
|
history
diff --git
a/ir/opt/return.c
b/ir/opt/return.c
index
c60b9c1
..
2082d55
100644
(file)
--- a/
ir/opt/return.c
+++ b/
ir/opt/return.c
@@
-68,7
+68,7
@@
void normalize_one_return(ir_graph *irg)
for (n_rets = i = 0; i < n; ++i) {
ir_node *node = get_Block_cfgpred(endbl, i);
for (n_rets = i = 0; i < n; ++i) {
ir_node *node = get_Block_cfgpred(endbl, i);
- if (
get_irn_op(node) == op_Return
) {
+ if (
is_Return(node)
) {
++n_rets;
set_bit(i);
++n_rets;
set_bit(i);
@@
-206,7
+206,7
@@
void normalize_n_returns(ir_graph *irg)
for (n_finals = n_rets = i = 0; i < n; ++i) {
ir_node *ret = get_Block_cfgpred(endbl, i);
for (n_finals = n_rets = i = 0; i < n; ++i) {
ir_node *ret = get_Block_cfgpred(endbl, i);
- if (
get_irn_op(ret) == op_Return
&& can_move_ret(ret)) {
+ if (
is_Return(ret)
&& can_move_ret(ret)) {
/*
* Ok, all conditions met, we can move this Return, put it
* on our work list.
/*
* Ok, all conditions met, we can move this Return, put it
* on our work list.