Limit in-place specialization additions to exact sequence repetition

Assisted-by: OpenAI Codex:model identifier unavailable
This commit is contained in:
youknowdot committed 2026-10-10 01:00:58 +09:00
1 parent 72a6330b3c
commit 2002f530dc
1 file changed
+3 -1
+3 -1
View File
@@ -10763,7 +10763,9 @@ impl ExecutingFrame<'_> {
&& b.downcast_ref_if_exact::<PyFloat>(vm).is_some()
{
Some(Instruction::BinaryOpMultiplyFloat)
} else if let Some(descr) = self.binary_op_extended_specialization(op, a, b, vm) {
} else if (sequence_int_guard(a, b, vm) || int_sequence_guard(a, b, vm))
&& let Some(descr) = self.binary_op_extended_specialization(op, a, b, vm)
{
cached_extend_descr = Some(descr);
Some(Instruction::BinaryOpExtend)
} else {