projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
47885bf
)
Use symbolic names instead of magic values for the position parameter of get_irn_n().
author
Christoph Mallon
<christoph.mallon@gmx.de>
Fri, 22 Aug 2008 18:24:00 +0000
(18:24 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Fri, 22 Aug 2008 18:24:00 +0000
(18:24 +0000)
[r21364]
ir/be/ia32/bearch_ia32.c
patch
|
blob
|
history
diff --git
a/ir/be/ia32/bearch_ia32.c
b/ir/be/ia32/bearch_ia32.c
index
83e28f1
..
5f685ef
100644
(file)
--- a/
ir/be/ia32/bearch_ia32.c
+++ b/
ir/be/ia32/bearch_ia32.c
@@
-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
cycles.
*/
- if(is_ia32_use_frame(irn) ||
- (is_ia32_NoReg_GP(get_irn_n(irn, 0)) &&
- is_ia32_NoReg_GP(get_irn_n(irn, 1)))) {
+ if (is_ia32_use_frame(irn) || (
+ is_ia32_NoReg_GP(get_irn_n(irn, n_ia32_base)) &&
+ is_ia32_NoReg_GP(get_irn_n(irn, n_ia32_index))
+ )) {
cost += 5;
} else {
cost += 20;