Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
11a3f35d
Commit
11a3f35d
authored
Mar 03, 2006
by
Michael Beck
Browse files
used new is_Sel(), is_Call()
[r7391]
parent
d08f5804
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ana/cgana.c
View file @
11a3f35d
...
...
@@ -177,7 +177,7 @@ static void sel_methods_walker(ir_node * node, void *env) {
entity
**
arr
;
/* Call standard optimizations */
if
(
get_irn_op
(
node
)
==
op_Sel
)
{
if
(
is_Sel
(
node
)
)
{
ir_node
*
new_node
=
optimize_in_place
(
node
);
if
(
node
!=
new_node
)
exchange
(
node
,
new_node
);
...
...
@@ -281,7 +281,7 @@ static entity ** get_Sel_arr(ir_node * sel) {
entity
*
ent
;
entity
**
arr
;
assert
(
sel
&&
get_irn_op
(
sel
)
==
op_Sel
);
assert
(
is_Sel
(
sel
)
);
ent
=
get_Sel_entity
(
sel
);
ent
=
get_inherited_methods_implementation
(
ent
);
...
...
@@ -709,7 +709,7 @@ static void callee_ana_node(ir_node * node, eset * methods) {
/* */
static
void
callee_walker
(
ir_node
*
call
,
void
*
env
)
{
if
(
get_irn_op
(
call
)
==
op_C
all
)
{
if
(
is_Call
(
c
all
)
)
{
eset
*
methods
=
eset_create
();
entity
*
ent
;
entity
**
arr
=
NEW_ARR_F
(
entity
*
,
0
);
...
...
@@ -797,7 +797,7 @@ static void sel_methods_dispose(void) {
/*--------------------------------------------------------------------------*/
static
void
destruct_walker
(
ir_node
*
node
,
void
*
env
)
{
if
(
get_irn_op
(
node
)
==
op_Call
)
{
if
(
is_Call
(
node
)
)
{
remove_Call_callee_arr
(
node
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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