mirror of
https://github.com/python/cpython.git
synced 2026-05-09 06:01:08 -04:00
gh-100239: Propagate type info through _BINARY_OP_EXTEND in tier 2 (GH-148146)
This commit is contained in:
@@ -410,8 +410,16 @@ dummy_func(void) {
|
||||
}
|
||||
|
||||
op(_BINARY_OP_EXTEND, (descr/4, left, right -- res, l, r)) {
|
||||
(void)descr;
|
||||
res = sym_new_not_null(ctx);
|
||||
_PyBinaryOpSpecializationDescr *d = (_PyBinaryOpSpecializationDescr *)descr;
|
||||
if (d != NULL && d->result_type != NULL) {
|
||||
res = sym_new_type(ctx, d->result_type);
|
||||
if (d->result_unique) {
|
||||
res = PyJitRef_MakeUnique(res);
|
||||
}
|
||||
}
|
||||
else {
|
||||
res = sym_new_not_null(ctx);
|
||||
}
|
||||
l = left;
|
||||
r = right;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user