projects
/
platform
/
upstream
/
orc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
735ff81
)
Remove constant folding, it's broken
author
David Schleef
<ds@schleef.org>
Wed, 28 Jul 2010 00:22:53 +0000
(17:22 -0700)
committer
David Schleef
<ds@schleef.org>
Wed, 28 Jul 2010 08:01:14 +0000
(
01:01
-0700)
orc/orcprogram.c
patch
|
blob
|
history
diff --git
a/orc/orcprogram.c
b/orc/orcprogram.c
index 2daf0bbd174962434930c68327613ca82cd848a6..a037693252695521d2867feb6b9e55598f70662e 100644
(file)
--- a/
orc/orcprogram.c
+++ b/
orc/orcprogram.c
@@
-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;