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
e440f836
Commit
e440f836
authored
Feb 15, 2016
by
Christoph Mallon
Browse files
cleanup: Query value only when it is needed.
parent
20aee4d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/begnuas.c
View file @
e440f836
...
...
@@ -731,7 +731,6 @@ const char *be_gas_insn_label_prefix(void)
static
void
emit_init_expression
(
ir_node
*
const
init
)
{
ir_mode
*
mode
=
get_irn_mode
(
init
);
int
bytes
=
get_mode_size_bytes
(
mode
);
switch
(
get_irn_opcode
(
init
))
{
case
iro_Conv
:
...
...
@@ -739,8 +738,9 @@ static void emit_init_expression(ir_node *const init)
return
;
case
iro_Const
:
{
ir_tarval
*
tv
=
get_Const_tarval
(
init
);
/* it's an arithmetic value */
int
const
bytes
=
get_mode_size_bytes
(
mode
);
ir_tarval
*
const
tv
=
get_Const_tarval
(
init
);
emit_tv
(
tv
,
0
,
bytes
);
return
;
}
...
...
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