unboxing improvement in the JIT

Improve the "can unbox test" to include patterns that were already covered
by the more restrictive "can unbox without disturbing N registers" test
(which is always tried first, but the weaker test recurs within patterns
that the stronger test does not recognize).
This commit is contained in:
Matthew Flatt 2014-03-27 14:09:56 -06:00
parent ba9bcf5e0e
commit 709ff43174

View File

@ -360,7 +360,7 @@ int can_unbox_directly(Scheme_Object *obj, int extfl, int bfuel)
obj = ((Scheme_Sequence *)obj)->array[((Scheme_Sequence *)obj)->count - 1];
break;
default:
return 0;
return is_unboxing_immediate(obj, 0, extfl);
}
}
}