]> de.git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
don't optimize out NOT_S instructions for COND
authorWolfgang Bumiller <blub@speed.at>
Sun, 23 Dec 2012 16:51:01 +0000 (17:51 +0100)
committerWolfgang Bumiller <blub@speed.at>
Sun, 23 Dec 2012 16:51:01 +0000 (17:51 +0100)
ir.c

diff --git a/ir.c b/ir.c
index 93c0a541bff645f8756f63c7f5160009bef6a467..6d436f1e5d8af305a9135c564577c3c6934329ee 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -609,7 +609,8 @@ bool ir_function_pass_peephole(ir_function *self)
                     if (inot->_ops[0] != value ||
                         inot->opcode < INSTR_NOT_F ||
                         inot->opcode > INSTR_NOT_FNC ||
-                        inot->opcode == INSTR_NOT_V) /* can't do this one */
+                        inot->opcode == INSTR_NOT_V || /* can't do these */
+                        inot->opcode == INSTR_NOT_S)
                     {
                         break;
                     }