qbe

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

commit d272f0896bb188b941abef389760f71eb61ea725
parent fb1c02657b8c6e91e591bfc5587a805cf4e6c7c3
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Sun, 25 Oct 2015 15:18:42 -0400

simplify constant handling in amatch()

Diffstat:
Mlisc/isel.c | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/lisc/isel.c b/lisc/isel.c @@ -713,10 +713,7 @@ amatch(Addr *a, Ref r, ANum *ai, Fn *fn, int top) if (top) memset(a, 0, sizeof *a); if (rtype(r) == RCon) { - if (top) - a->base = r; - else - addcon(&a->offset, &fn->con[r.val]); + addcon(&a->offset, &fn->con[r.val]); return; } assert(rtype(r) == RTmp);