cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit c0984480b6d6688d32e1023caba6a97beb3fa4e7
parent d31d1b2b20291ef8bceaf17444843b11558a3c25
Author: Michael Forney <mforney@mforney.org>
Date:   Fri, 15 Feb 2019 16:29:32 -0800

Remove a dead conditional in ftou

Diffstat:
Mqbe.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/qbe.c b/qbe.c @@ -502,8 +502,8 @@ ftou(struct function *f, struct representation *r, struct value *v) phi[2] = mkblock("ftou_big"); join = mkblock("ftou_join"); - maxflt = mkfltconst(v->repr, r->base == 'w' ? 0x1p31 : 0x1p63); - maxint = mkintconst(&i64, r->base == 'w' ? 1ull<<31 : 1ull<<63); + maxflt = mkfltconst(v->repr, 0x1p63); + maxint = mkintconst(&i64, 1ull<<63); big = funcinst(f, v->repr->base == 's' ? ICGES : ICGED, &i32, (struct value *[]){v, maxflt}); funcjnz(f, big, phi[2], phi[0]);