Skip to content

Commit 5f63c41

Browse files
committed
gh-148235: remove duplicate uops _LOAD_CONST_UNDER_INLINE(_BORROW) in JIT
1 parent 8af132b commit 5f63c41

4 files changed

Lines changed: 182 additions & 182 deletions

File tree

Include/internal/pycore_uop_metadata.h

Lines changed: 30 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/bytecodes.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5924,6 +5924,18 @@ dummy_func(
59245924
value = PyStackRef_FromPyObjectBorrow(ptr);
59255925
}
59265926

5927+
tier2 op(_INSERT_1_LOAD_CONST_INLINE, (ptr/4, left -- res, l)) {
5928+
res = PyStackRef_FromPyObjectNew(ptr);
5929+
l = left;
5930+
INPUTS_DEAD();
5931+
}
5932+
5933+
tier2 op(_INSERT_1_LOAD_CONST_INLINE_BORROW, (ptr/4, left -- res, l)) {
5934+
res = PyStackRef_FromPyObjectBorrow(ptr);
5935+
l = left;
5936+
INPUTS_DEAD();
5937+
}
5938+
59275939
tier2 op(_INSERT_2_LOAD_CONST_INLINE_BORROW, (ptr/4, left, right -- res, l, r)) {
59285940
res = PyStackRef_FromPyObjectBorrow(ptr);
59295941
l = left;
@@ -5953,18 +5965,6 @@ dummy_func(
59535965
value = PyStackRef_FromPyObjectBorrow(ptr);
59545966
}
59555967

5956-
tier2 op(_INSERT_1_LOAD_CONST_INLINE, (ptr/4, left -- res, l)) {
5957-
res = PyStackRef_FromPyObjectNew(ptr);
5958-
l = left;
5959-
INPUTS_DEAD();
5960-
}
5961-
5962-
tier2 op(_INSERT_1_LOAD_CONST_INLINE_BORROW, (ptr/4, left -- res, l)) {
5963-
res = PyStackRef_FromPyObjectBorrow(ptr);
5964-
l = left;
5965-
INPUTS_DEAD();
5966-
}
5967-
59685968
tier2 op(_START_EXECUTOR, (executor/4 --)) {
59695969
#ifndef _Py_JIT
59705970
assert(current_executor == (_PyExecutorObject*)executor);

Python/executor_cases.c.h

Lines changed: 114 additions & 114 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)