diff options
| author | 2026-02-19 20:29:16 +0100 | |
|---|---|---|
| committer | 2026-02-19 20:29:16 +0100 | |
| commit | ad8067a1ab1871cf57936828fb1b40c15cd3349d (patch) | |
| tree | ad86757ae0f84f1fd7dd58373cdb4f50d7f036d6 /ir/ssa.c | |
| parent | 1430f62ebed808458baccbdf0e41b806334ff704 (diff) | |
IR: just use an array for extended constants
The extra work of using a hashtable to intern them is probably
unnecessary.
Diffstat (limited to 'ir/ssa.c')
| -rw-r--r-- | ir/ssa.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -30,7 +30,7 @@ copyopt(struct function *fn) union ref arg = ins->l; if (arg.t == RTMP) k = insrescls(instrtab[arg.i]); else if (arg.t == RICON) k = cls2siz[ins->cls] == 4 ? KI32 : KI64; - else if (arg.t == RXCON) k = isnumcon(arg) ? conht[arg.i].cls : KPTR; + else if (arg.t == RXCON) k = isnumcon(arg) ? concls(arg) : KPTR; else continue; if (ins->cls != k) continue; |