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
220b4ab2
Commit
220b4ab2
authored
Aug 12, 2011
by
Andreas Zwinkau
Browse files
Fix size_t related warnings
parent
f16a6540
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/opt_inline.c
View file @
220b4ab2
...
...
@@ -1362,11 +1362,11 @@ static int calc_inline_benefice(call_entry *entry, ir_graph *callee)
ir_node
*
call
=
entry
->
call
;
ir_entity
*
ent
=
get_irg_entity
(
callee
);
ir_type
*
callee_frame
;
size_t
n_members
;
size_t
i
,
n_members
,
n_params
;
ir_node
*
frame_ptr
;
ir_type
*
mtp
;
int
weight
=
0
;
int
i
,
n_params
,
all_const
;
int
all_const
;
unsigned
cc
,
v
;
irg_inline_property
prop
;
...
...
@@ -1403,7 +1403,7 @@ static int calc_inline_benefice(call_entry *entry, ir_graph *callee)
cc
=
get_method_calling_convention
(
mtp
);
if
(
cc
&
cc_reg_param
)
{
/* register parameter, smaller costs for register parameters */
in
t
max_regs
=
cc
&
~
cc_bits
;
size_
t
max_regs
=
cc
&
~
cc_bits
;
if
(
max_regs
<
n_params
)
weight
+=
max_regs
*
2
+
(
n_params
-
max_regs
)
*
5
;
...
...
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