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
1cb9beb1
Commit
1cb9beb1
authored
Jul 27, 2011
by
Christoph Mallon
Browse files
Eliminate warning and use static assert.
parent
7461eb0c
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_finish.c
View file @
1cb9beb1
...
...
@@ -49,6 +49,9 @@
DEBUG_ONLY
(
static
firm_dbg_module_t
*
dbg
=
NULL
;)
COMPILETIME_ASSERT
((
int
)
pn_ia32_Sub_res
==
pn_ia32_Sbb_res
,
pn_ia32_Sub_res
);
COMPILETIME_ASSERT
((
int
)
pn_ia32_Sub_flags
==
pn_ia32_Sbb_flags
,
pn_ia32_Sub_flags
);
/**
* Transforms a Sub or xSub into Neg--Add iff OUT_REG != SRC1_REG && OUT_REG == SRC2_REG.
* THIS FUNCTIONS MUST BE CALLED AFTER REGISTER ALLOCATION.
...
...
@@ -122,8 +125,6 @@ static void ia32_transform_sub_to_neg_add(ir_node *irn)
if
(
get_irn_mode
(
irn
)
==
mode_T
)
{
/* collect the Proj uses */
assert
(
pn_ia32_Sub_res
==
pn_ia32_Sbb_res
);
assert
(
pn_ia32_Sub_flags
==
pn_ia32_Sbb_flags
);
foreach_out_edge
(
irn
,
edge
)
{
ir_node
*
proj
=
get_edge_src_irn
(
edge
);
long
pn
=
get_Proj_proj
(
proj
);
...
...
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