projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36a630b
)
avoid querying End/Anchor for register requirements
author
Matthias Braun
<matze@braunis.de>
Wed, 28 Nov 2012 10:18:36 +0000
(11:18 +0100)
committer
Matthias Braun
<matze@braunis.de>
Wed, 28 Nov 2012 10:27:14 +0000
(11:27 +0100)
ir/be/bearch.h
patch
|
blob
|
history
diff --git
a/ir/be/bearch.h
b/ir/be/bearch.h
index
e0ee362
..
8bf1c9b
100644
(file)
--- a/
ir/be/bearch.h
+++ b/
ir/be/bearch.h
@@
-579,7
+579,10
@@
static inline bool arch_irn_consider_in_reg_alloc(
if (get_irn_mode(node) == mode_T) { \
foreach_out_edge(node, edge_) { \
ir_node *const value = get_edge_src_irn(edge_); \
- arch_register_req_t const *const req_ = arch_get_irn_register_req(value); \
+ if (!is_Proj(value)) \
+ continue; \
+ long pn = get_Proj_proj(value); \
+ arch_register_req_t const *const req_ = arch_get_irn_register_req_out(node, pn); \
if (req_->cls != ccls) \
continue; \
code \