Remove constant folding, it's broken
authorDavid Schleef <ds@schleef.org>
Wed, 28 Jul 2010 00:22:53 +0000 (17:22 -0700)
committerDavid Schleef <ds@schleef.org>
Wed, 28 Jul 2010 08:01:14 +0000 (01:01 -0700)
orc/orcprogram.c

index 2daf0bb..a037693 100644 (file)
@@ -341,13 +341,6 @@ orc_program_add_constant (OrcProgram *program, int size, int value, const char *
 {
   int i;
   
-  for(i=0;i<program->n_const_vars;i++){
-    if (program->vars[i].value == value) {
-      ORC_DEBUG("reusing constant %d", value);
-      return i;
-    }
-  }
-  
   i = ORC_VAR_C1 + program->n_const_vars;
 
   program->vars[i].vartype = ORC_VAR_TYPE_CONST;