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
93da909d
Commit
93da909d
authored
Aug 22, 2008
by
Christoph Mallon
Browse files
Use symbolic names instead of magic values for the position parameter of get_irn_n().
[r21364]
parent
47885bf9
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/be/ia32/bearch_ia32.c
View file @
93da909d
...
@@ -630,9 +630,10 @@ static int ia32_get_op_estimated_cost(const ir_node *irn)
...
@@ -630,9 +630,10 @@ static int ia32_get_op_estimated_cost(const ir_node *irn)
(we assume they are in cache), other memory operations cost 20
(we assume they are in cache), other memory operations cost 20
cycles.
cycles.
*/
*/
if
(
is_ia32_use_frame
(
irn
)
||
if
(
is_ia32_use_frame
(
irn
)
||
(
(
is_ia32_NoReg_GP
(
get_irn_n
(
irn
,
0
))
&&
is_ia32_NoReg_GP
(
get_irn_n
(
irn
,
n_ia32_base
))
&&
is_ia32_NoReg_GP
(
get_irn_n
(
irn
,
1
))))
{
is_ia32_NoReg_GP
(
get_irn_n
(
irn
,
n_ia32_index
))
))
{
cost
+=
5
;
cost
+=
5
;
}
else
{
}
else
{
cost
+=
20
;
cost
+=
20
;
...
...
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