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
a19a30e8
Commit
a19a30e8
authored
Aug 11, 2014
by
yb9976
Browse files
Evaluate node, since bit information can be outdated.
This fixes opt/fehler266.c.
parent
e491316d
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
a19a30e8
...
...
@@ -7396,18 +7396,18 @@ restart:;
return
n
;
}
}
}
else
{
/* try to evaluate */
ir_tarval
*
tv
=
computed_value
(
n
);
if
(
tarval_is_constant
(
tv
))
{
/* evaluation was successful -- replace the node. */
ir_graph
*
const
irg
=
get_irn_irg
(
n
);
}
n
=
new_r_Const
(
irg
,
tv
);
/* try to evaluate */
ir_tarval
*
tv
=
computed_value
(
n
);
if
(
tarval_is_constant
(
tv
))
{
/* evaluation was successful -- replace the node. */
ir_graph
*
const
irg
=
get_irn_irg
(
n
);
DBG_OPT_CSTEVAL
(
old_n
,
n
);
return
n
;
}
n
=
new_r_Const
(
irg
,
tv
);
DBG_OPT_CSTEVAL
(
old_n
,
n
);
return
n
;
}
}
}
...
...
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