diff options
| author | 2026-03-21 22:20:34 +0100 | |
|---|---|---|
| committer | 2026-03-22 10:49:26 +0100 | |
| commit | 79874c83bf76a5b3efd3d558933b90d9b53b829e (patch) | |
| tree | 566930a17f1e090f86c2051ffec33106012908eb /src/ir_mem2reg.c | |
| parent | 83342d3b60438ef2421160a0673fb45d48b2f39f (diff) | |
IR: add 3rd operand to Instr
The motivation is for aarch64 msub/madd instrs, for isel to produce. But
it should be useful for other things too.
Diffstat (limited to 'src/ir_mem2reg.c')
| -rw-r--r-- | src/ir_mem2reg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir_mem2reg.c b/src/ir_mem2reg.c index 8890439..ae41833 100644 --- a/src/ir_mem2reg.c +++ b/src/ir_mem2reg.c @@ -276,7 +276,7 @@ mem2reg(Function *fn) if (oisstore(ins->op)) { writevar(&sb, var, use->blk, ins->r); - *ins = mkinstr(Onop,0,); + *ins = mkinstr0(Onop,0); } else if (oisload(ins->op)) { Ref val = readvar(&sb, var, k = ins->cls, use->blk); adduse(use->blk, use->u, val); @@ -285,7 +285,7 @@ mem2reg(Function *fn) assert(val.bits); ext = Ocopy; } - *ins = mkinstr(ext, k, val); + *ins = mkinstr1(ext, k, val); } } /* remove alloca */ |