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
4ba94858
Commit
4ba94858
authored
Mar 24, 2014
by
yb9976
Browse files
Ensure that tarval is constant.
This fixes opt/fehler238.c.
parent
4051ec12
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
4ba94858
...
...
@@ -6736,7 +6736,7 @@ restart:;
ir_tarval
*
o
=
b
->
o
;
/* Replace node with constant value by Const. */
if
(
z
==
o
)
{
if
(
z
==
o
&&
tarval_is_constant
(
z
)
)
{
ir_mode
*
const
m
=
get_irn_mode
(
n
);
if
(
mode_is_int
(
m
)
||
m
==
mode_b
)
{
ir_graph
*
const
irg
=
get_irn_irg
(
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