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
9c84326f
Commit
9c84326f
authored
Mar 10, 2008
by
Michael Beck
Browse files
use optimize_graph_df() instead of old local_optimize()
[r18046]
parent
3486862d
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/lower/lower_intrinsics.c
View file @
9c84326f
...
...
@@ -38,11 +38,12 @@
#include
"irgmod.h"
#include
"irgopt.h"
#include
"trouts.h"
#include
"irvrfy.h"
#include
"pmap.h"
#include
"xmalloc.h"
#include
"iropt_dbg.h"
/** Walker environment */
/** Walker environment
.
*/
typedef
struct
_walker_env
{
pmap
*
c_map
;
/**< The intrinsic call map. */
unsigned
nr_of_intrinsics
;
/**< statistics */
...
...
@@ -126,21 +127,24 @@ unsigned lower_intrinsics(i_record *list, int length, int part_block_used) {
wenv
.
nr_of_intrinsics
=
0
;
irg_walk_graph
(
irg
,
NULL
,
call_mapper
,
&
wenv
);
if
(
wenv
.
nr_of_intrinsics
)
{
/*
c
hanges detected */
if
(
wenv
.
nr_of_intrinsics
>
0
)
{
/*
C
hanges detected
: we might have added/removed nodes.
*/
set_irg_outs_inconsistent
(
irg
);
set_irg_callee_info_state
(
irg
,
irg_callee_info_inconsistent
);
/*
e
xception control flow might have changed */
/*
E
xception control flow might have changed
/ new block might have added.
*/
set_irg_doms_inconsistent
(
irg
);
set_irg_extblk_inconsistent
(
irg
);
set_irg_loopinfo_inconsistent
(
irg
);
/*
c
alls might be removed/added */
/*
C
alls might be removed/added
.
*/
set_trouts_inconsistent
();
/* optimize it, tuple might be created */
local_optimize_graph
(
irg
);
/* verify here */
irg_verify
(
irg
,
VRFY_NORMAL
);
/* Optimize it, tuple might be created. */
optimize_graph_df
(
irg
);
nr_of_intrinsics
+=
wenv
.
nr_of_intrinsics
;
}
...
...
Write
Preview
Supports
Markdown
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