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:
1f1ae32
)
Look for rules in reverse order
author
David Schleef
<ds@schleef.org>
Wed, 11 Aug 2010 06:28:48 +0000
(23:28 -0700)
committer
David Schleef
<ds@schleef.org>
Wed, 11 Aug 2010 06:28:48 +0000
(23:28 -0700)
That way, we'll find the SSSE3 rules before SSE2. Duh.
orc/orcopcodes.c
patch
|
blob
|
history
diff --git
a/orc/orcopcodes.c
b/orc/orcopcodes.c
index
697ab44
..
405869f
100644
(file)
--- a/
orc/orcopcodes.c
+++ b/
orc/orcopcodes.c
@@
-187,7
+187,7
@@
orc_target_get_rule (OrcTarget *target, OrcStaticOpcode *opcode,
if (j < 0 || j >= opcode_sets[k].n_opcodes) continue;
if (opcode_sets[k].opcodes + j != opcode) continue;
- for(i=
0;i<target->n_rule_sets;i++
){
+ for(i=
target->n_rule_sets-1;i>=0;i--
){
if (target->rule_sets[i].opcode_major != opcode_sets[k].opcode_major) continue;
if (target->rule_sets[i].required_target_flags & (~target_flags)) continue;