projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cee93a6
)
Interference matrix is now initialized faster
author
Thomas Bersch
<bersch@ipd.info.uni-karlsruhe.de>
Thu, 26 Nov 2009 11:43:47 +0000
(11:43 +0000)
committer
Thomas Bersch
<bersch@ipd.info.uni-karlsruhe.de>
Thu, 26 Nov 2009 11:43:47 +0000
(11:43 +0000)
[r26745]
ir/be/becopypbqp.c
patch
|
blob
|
history
diff --git
a/ir/be/becopypbqp.c
b/ir/be/becopypbqp.c
index
3638be0
..
92fdcfc
100644
(file)
--- a/
ir/be/becopypbqp.c
+++ b/
ir/be/becopypbqp.c
@@
-186,14
+186,7
@@
static int co_solve_heuristic_pbqp(copy_opt_t *co) {
struct pbqp_matrix *ife_matrix = pbqp_matrix_alloc(pbqp_co.pbqp, number_registers, number_registers);
/* set costs */
for(row = 0; row < number_registers; row++) {
struct pbqp_matrix *ife_matrix = pbqp_matrix_alloc(pbqp_co.pbqp, number_registers, number_registers);
/* set costs */
for(row = 0; row < number_registers; row++) {
- for(col = 0; col < number_registers; col++) {
- if(row == col) {
- pbqp_matrix_set(ife_matrix, row, col, INF_COSTS);
- }
- else {
- pbqp_matrix_set(ife_matrix, row, col, 0);
- }
- }
+ pbqp_matrix_set(ife_matrix, row, row, INF_COSTS);
}
/* create costs matrix for affinity edges */
}
/* create costs matrix for affinity edges */
@@
-230,7
+223,7
@@
static int co_solve_heuristic_pbqp(copy_opt_t *co) {
if(aff_node != NULL) {
co_gs_foreach_neighb(aff_node, aff_neighb_node) {
/* ignore Unknowns */
if(aff_node != NULL) {
co_gs_foreach_neighb(aff_node, aff_neighb_node) {
/* ignore Unknowns */
- if(get_node(pbqp_co.pbqp, get_irn_idx(aff_node->irn)) == NULL)
+ if(get_node(pbqp_co.pbqp, get_irn_idx(aff_n
eighb_n
ode->irn)) == NULL)
continue;
if(get_edge(pbqp_co.pbqp, get_irn_idx(aff_node->irn), get_irn_idx(aff_neighb_node->irn)) == NULL) {
continue;
if(get_edge(pbqp_co.pbqp, get_irn_idx(aff_node->irn), get_irn_idx(aff_neighb_node->irn)) == NULL) {