commit 05f120431dd840009c37f96209dae75ab6cd6327
parent a9dc36e0ebd151ca96bca1a7ffb5ecac49ee6bcf
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Sun, 25 Oct 2015 21:17:24 -0400
this test optimization is sometimes incorrect
Diffstat:
1 file changed, 0 insertions(+), 5 deletions(-)
diff --git 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: