qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 3b75357e2bd14d6222bd9e3fb8b6894239ff2ae3
parent 630127c68b872dcb7ddb22079f91f001b73945fc
Author: Michael Forney <mforney@mforney.org>
Date:   Sat, 12 Feb 2022 02:27:47 -0800

Revert "skip jump arguments in rega"

This reverts commit 028534d9897079bf64559dca0402bc59a956ce46.

riscv64 will have jump arguments with type RTmp.

Diffstat:
Mrega.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rega.c b/rega.c @@ -359,9 +359,10 @@ doblk(Blk *b, RMap *cur) Mem *m; Ref *ra[4]; - assert(rtype(b->jmp.arg) != RTmp); for (r=0; bsiter(b->out, &r) && r<Tmp0; r++) radd(cur, r, r); + if (rtype(b->jmp.arg) == RTmp) + b->jmp.arg = ralloc(cur, b->jmp.arg.val); curi = &insb[NIns]; for (i1=&b->ins[b->nins]; i1!=b->ins;) { emiti(*--i1);