Skip to content

gh-131798: optimize CALL_KW_PY in the JIT#148466

Open
kumaraditya303 wants to merge 4 commits intopython:mainfrom
kumaraditya303:jit-calls
Open

gh-131798: optimize CALL_KW_PY in the JIT#148466
kumaraditya303 wants to merge 4 commits intopython:mainfrom
kumaraditya303:jit-calls

Conversation

@kumaraditya303
Copy link
Copy Markdown
Contributor

@kumaraditya303 kumaraditya303 commented Apr 12, 2026


def test_call_kw(self):
def func(a):
return 42 * a
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be checking that we optimize through the trace. So the best way is to put a global (e.g. range) here and check if it gets promoted in the tests below. See for example test_init_resolves_callable which does self.assertNotIn("_LOAD_GLOBAL_BUILTINS", uops). Same for the other test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants