mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	gh-128195: Add _REPLACE_WITH_TRUE to the tier2 optimizer (GH-128203)
				
					
				
			Add `_REPLACE_WITH_TRUE` to the tier2 optimizer
This commit is contained in:
		
							parent
							
								
									d61542b5ff
								
							
						
					
					
						commit
						30efede33c
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		|  | @ -899,6 +899,10 @@ dummy_func(void) { | |||
|         (void)version; | ||||
|     } | ||||
| 
 | ||||
|     op(_REPLACE_WITH_TRUE, (value -- res)) { | ||||
|         res = sym_new_const(ctx, Py_True); | ||||
|     } | ||||
| 
 | ||||
| // END BYTECODES //
 | ||||
| 
 | ||||
| } | ||||
|  |  | |||
							
								
								
									
										2
									
								
								Python/optimizer_cases.c.h
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								Python/optimizer_cases.c.h
									
										
									
										generated
									
									
									
								
							|  | @ -211,7 +211,7 @@ | |||
| 
 | ||||
|         case _REPLACE_WITH_TRUE: { | ||||
|             _Py_UopsSymbol *res; | ||||
|             res = sym_new_not_null(ctx); | ||||
|             res = sym_new_const(ctx, Py_True); | ||||
|             stack_pointer[-1] = res; | ||||
|             break; | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yan Yanchii
						Yan Yanchii