MCPcopy Index your code
hub / github.com/python/cpython / _small_consts_match

Method _small_consts_match

Tools/jit/_optimizers.py:647–650  ·  view source on GitHub ↗
(self, inst1: Instruction, inst2: Instruction)

Source from the content-addressed store, hash-verified

645 )
646
647 def _small_consts_match(self, inst1: Instruction, inst2: Instruction) -> bool:
648 reg1 = self._get_reg(inst1)
649 reg2 = self._get_reg(inst2)
650 return reg1 == reg2
651
652
653class OptimizerX86(Optimizer): # pylint: disable = too-few-public-methods

Callers

nothing calls this directly

Calls 1

_get_regMethod · 0.95

Tested by

no test coverage detected