@@ -713,83 +713,53 @@ dummy_func(
713713 // the following _POP_TOP_INT becomes _POP_TOP_NOP. Tier 2 only.
714714 tier2 op (_BINARY_OP_ADD_INT_INPLACE , (left , right -- res , l , r )) {
715715 INT_INPLACE_OP (left , right , left , + , _PyCompactLong_Add );
716- EXIT_IF (!_int_inplace_ok && PyStackRef_IsNull (_int_inplace_res ));
717- if (_int_inplace_ok ) {
718- res = PyStackRef_DUP (left );
719- }
720- else {
721- res = _int_inplace_res ;
722- }
716+ EXIT_IF (PyStackRef_IsNull (_int_inplace_res ));
717+ res = _int_inplace_res ;
723718 l = left ;
724719 r = right ;
725720 INPUTS_DEAD ();
726721 }
727722
728723 tier2 op (_BINARY_OP_SUBTRACT_INT_INPLACE , (left , right -- res , l , r )) {
729724 INT_INPLACE_OP (left , right , left , - , _PyCompactLong_Subtract );
730- EXIT_IF (!_int_inplace_ok && PyStackRef_IsNull (_int_inplace_res ));
731- if (_int_inplace_ok ) {
732- res = PyStackRef_DUP (left );
733- }
734- else {
735- res = _int_inplace_res ;
736- }
725+ EXIT_IF (PyStackRef_IsNull (_int_inplace_res ));
726+ res = _int_inplace_res ;
737727 l = left ;
738728 r = right ;
739729 INPUTS_DEAD ();
740730 }
741731
742732 tier2 op (_BINARY_OP_MULTIPLY_INT_INPLACE , (left , right -- res , l , r )) {
743733 INT_INPLACE_OP (left , right , left , * , _PyCompactLong_Multiply );
744- EXIT_IF (!_int_inplace_ok && PyStackRef_IsNull (_int_inplace_res ));
745- if (_int_inplace_ok ) {
746- res = PyStackRef_DUP (left );
747- }
748- else {
749- res = _int_inplace_res ;
750- }
734+ EXIT_IF (PyStackRef_IsNull (_int_inplace_res ));
735+ res = _int_inplace_res ;
751736 l = left ;
752737 r = right ;
753738 INPUTS_DEAD ();
754739 }
755740
756741 tier2 op (_BINARY_OP_ADD_INT_INPLACE_RIGHT , (left , right -- res , l , r )) {
757742 INT_INPLACE_OP (left , right , right , + , _PyCompactLong_Add );
758- EXIT_IF (!_int_inplace_ok && PyStackRef_IsNull (_int_inplace_res ));
759- if (_int_inplace_ok ) {
760- res = PyStackRef_DUP (right );
761- }
762- else {
763- res = _int_inplace_res ;
764- }
743+ EXIT_IF (PyStackRef_IsNull (_int_inplace_res ));
744+ res = _int_inplace_res ;
765745 l = left ;
766746 r = right ;
767747 INPUTS_DEAD ();
768748 }
769749
770750 tier2 op (_BINARY_OP_SUBTRACT_INT_INPLACE_RIGHT , (left , right -- res , l , r )) {
771751 INT_INPLACE_OP (left , right , right , - , _PyCompactLong_Subtract );
772- EXIT_IF (!_int_inplace_ok && PyStackRef_IsNull (_int_inplace_res ));
773- if (_int_inplace_ok ) {
774- res = PyStackRef_DUP (right );
775- }
776- else {
777- res = _int_inplace_res ;
778- }
752+ EXIT_IF (PyStackRef_IsNull (_int_inplace_res ));
753+ res = _int_inplace_res ;
779754 l = left ;
780755 r = right ;
781756 INPUTS_DEAD ();
782757 }
783758
784759 tier2 op (_BINARY_OP_MULTIPLY_INT_INPLACE_RIGHT , (left , right -- res , l , r )) {
785760 INT_INPLACE_OP (left , right , right , * , _PyCompactLong_Multiply );
786- EXIT_IF (!_int_inplace_ok && PyStackRef_IsNull (_int_inplace_res ));
787- if (_int_inplace_ok ) {
788- res = PyStackRef_DUP (right );
789- }
790- else {
791- res = _int_inplace_res ;
792- }
761+ EXIT_IF (PyStackRef_IsNull (_int_inplace_res ));
762+ res = _int_inplace_res ;
793763 l = left ;
794764 r = right ;
795765 INPUTS_DEAD ();
0 commit comments