node_hash.c optimization: use inst[].lab instead of get_tok_value(..., "lab"...)

This commit is contained in:
stefan schippers 2024-09-14 09:52:06 +02:00
parent dfe2e05603
commit 88b44db333
1 changed files with 5 additions and 1 deletions

View File

@ -380,8 +380,12 @@ void list_nets(char **result)
if(skip_instance(i, 0, netlist_lvs_ignore)) continue;
my_strdup(_ALLOC_ID_, &type,(xctx->inst[i].ptr+ xctx->sym)->type);
if(type && xctx->inst[i].node && IS_PIN(type)) {
/*
* my_mstrcat(_ALLOC_ID_, result,
* "{", get_tok_value(xctx->inst[i].prop_ptr, "lab", 0), " ", type, "}\n", NULL);
*/
my_mstrcat(_ALLOC_ID_, result,
"{", get_tok_value(xctx->inst[i].prop_ptr, "lab", 0), " ", type, "}\n", NULL);
"{", xctx->inst[i].lab, " ", type, "}\n", NULL);
}
}
if(type) my_free(_ALLOC_ID_, &type);