mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	GH-115819: Eliminate Boolean guards when value is known (GH-116355)
This commit is contained in:
		
							parent
							
								
									c91bdf86ef
								
							
						
					
					
						commit
						0c81ce1360
					
				
					 6 changed files with 102 additions and 2 deletions
				
			
		|  | @ -231,6 +231,15 @@ _Py_uop_sym_new_null(_Py_UOpsContext *ctx) | |||
|     return null_sym; | ||||
| } | ||||
| 
 | ||||
| bool | ||||
| _Py_uop_sym_has_type(_Py_UopsSymbol *sym) | ||||
| { | ||||
|     if (_Py_uop_sym_is_bottom(sym)) { | ||||
|         return false; | ||||
|     } | ||||
|     return sym->typ != NULL; | ||||
| } | ||||
| 
 | ||||
| bool | ||||
| _Py_uop_sym_matches_type(_Py_UopsSymbol *sym, PyTypeObject *typ) | ||||
| { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Mark Shannon
						Mark Shannon