From 05f120431dd840009c37f96209dae75ab6cd6327 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Sun, 25 Oct 2015 21:17:24 -0400 Subject: [PATCH] this test optimization is sometimes incorrect --- lisc/emit.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lisc/emit.c b/lisc/emit.c index 8fbaa05..8e69780 100644 --- a/lisc/emit.c +++ b/lisc/emit.c @@ -326,11 +326,6 @@ eins(Ins i, Fn *fn, FILE *f) emitf(fn, f, "idiv%w %R", i.wide, i.arg[0]); break; case OXCmp: - if (isreg(i.arg[1]) && req(i.arg[0], CON_Z)) { - emitf(fn, f, "test%w %R, %R", - i.wide, i.arg[1], i.arg[1]); - break; - } emitf(fn, f, "cmp%w %R, %R", i.wide, i.arg[0], i.arg[1]); break; case OXTest: