@@ -2454,14 +2454,8 @@ def testfunc(n):
24542454 self .assertEqual (res , TIER2_THRESHOLD )
24552455 self .assertIsNotNone (ex )
24562456 uops = get_opnames (ex )
2457- # When the result of type(...) is known, _CALL_TYPE_1 is replaced with
2458- # _SHUFFLE_2_LOAD_CONST_INLINE_BORROW which is optimized away in
2459- # remove_unneeded_uops.
2457+ # When the result of type(...) is known, _CALL_TYPE_1 is decomposed.
24602458 self .assertNotIn ("_CALL_TYPE_1" , uops )
2461- self .assertNotIn ("_SHUFFLE_2_LOAD_CONST_INLINE_BORROW" , uops )
2462- self .assertNotIn ("_POP_CALL_ONE_LOAD_CONST_INLINE_BORROW" , uops )
2463- self .assertNotIn ("_POP_CALL_LOAD_CONST_INLINE_BORROW" , uops )
2464- self .assertNotIn ("_POP_TOP_LOAD_CONST_INLINE_BORROW" , uops )
24652459
24662460 def test_call_type_1_result_is_const (self ):
24672461 def testfunc (n ):
@@ -2685,9 +2679,6 @@ def testfunc(n):
26852679 # When the length is < _PY_NSMALLPOSINTS, the len() call is replaced
26862680 # with just an inline load.
26872681 self .assertNotIn ("_CALL_LEN" , uops )
2688- self .assertNotIn ("_POP_CALL_ONE_LOAD_CONST_INLINE_BORROW" , uops )
2689- self .assertNotIn ("_POP_CALL_LOAD_CONST_INLINE_BORROW" , uops )
2690- self .assertNotIn ("_POP_TOP_LOAD_CONST_INLINE_BORROW" , uops )
26912682
26922683 def test_call_len_known_length (self ):
26932684 # Make sure that len(t) is not optimized for a tuple of length 2048.
@@ -2960,10 +2951,6 @@ def testfunc(n):
29602951 self .assertNotIn ("_CALL_ISINSTANCE" , uops )
29612952 self .assertNotIn ("_GUARD_THIRD_NULL" , uops )
29622953 self .assertNotIn ("_GUARD_CALLABLE_ISINSTANCE" , uops )
2963- self .assertNotIn ("_POP_TOP_LOAD_CONST_INLINE_BORROW" , uops )
2964- self .assertNotIn ("_POP_CALL_LOAD_CONST_INLINE_BORROW" , uops )
2965- self .assertNotIn ("_POP_CALL_ONE_LOAD_CONST_INLINE_BORROW" , uops )
2966- self .assertNotIn ("_POP_CALL_TWO_LOAD_CONST_INLINE_BORROW" , uops )
29672954
29682955 def test_call_list_append (self ):
29692956 def testfunc (n ):
@@ -3006,9 +2993,6 @@ def testfunc(n):
30062993 self .assertNotIn ("_TO_BOOL_BOOL" , uops )
30072994 self .assertNotIn (self .guard_is_true , uops )
30082995 self .assertNotIn ("_POP_TOP_LOAD_CONST_INLINE_BORROW" , uops )
3009- self .assertNotIn ("_POP_CALL_LOAD_CONST_INLINE_BORROW" , uops )
3010- self .assertNotIn ("_POP_CALL_ONE_LOAD_CONST_INLINE_BORROW" , uops )
3011- self .assertNotIn ("_POP_CALL_TWO_LOAD_CONST_INLINE_BORROW" , uops )
30122996
30132997 def test_call_isinstance_is_false (self ):
30142998 def testfunc (n ):
@@ -3027,9 +3011,6 @@ def testfunc(n):
30273011 self .assertNotIn ("_TO_BOOL_BOOL" , uops )
30283012 self .assertNotIn (self .guard_is_false , uops )
30293013 self .assertNotIn ("_POP_TOP_LOAD_CONST_INLINE_BORROW" , uops )
3030- self .assertNotIn ("_POP_CALL_LOAD_CONST_INLINE_BORROW" , uops )
3031- self .assertNotIn ("_POP_CALL_ONE_LOAD_CONST_INLINE_BORROW" , uops )
3032- self .assertNotIn ("_POP_CALL_TWO_LOAD_CONST_INLINE_BORROW" , uops )
30333014
30343015 def test_call_isinstance_subclass (self ):
30353016 def testfunc (n ):
@@ -3048,9 +3029,6 @@ def testfunc(n):
30483029 self .assertNotIn ("_TO_BOOL_BOOL" , uops )
30493030 self .assertNotIn (self .guard_is_true , uops )
30503031 self .assertNotIn ("_POP_TOP_LOAD_CONST_INLINE_BORROW" , uops )
3051- self .assertNotIn ("_POP_CALL_LOAD_CONST_INLINE_BORROW" , uops )
3052- self .assertNotIn ("_POP_CALL_ONE_LOAD_CONST_INLINE_BORROW" , uops )
3053- self .assertNotIn ("_POP_CALL_TWO_LOAD_CONST_INLINE_BORROW" , uops )
30543032
30553033 def test_call_isinstance_unknown_object (self ):
30563034 def testfunc (n ):
0 commit comments