Skip to content

Commit a6fffdc

Browse files
committed
Remove redundant make unique ops
1 parent 8c8e0a9 commit a6fffdc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Python/optimizer_bytecodes.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ dummy_func(void) {
9292
if (sym_is_null(value)) {
9393
ctx->done = true;
9494
}
95-
value = PyJitRef_RemoveUnique(value);
95+
assert(!PyJitRef_IsUnique(value));
9696
}
9797

9898
op(_LOAD_FAST, (-- value)) {
9999
value = GETLOCAL(oparg);
100-
value = PyJitRef_RemoveUnique(value);
100+
assert(!PyJitRef_IsUnique(value));
101101
}
102102

103103
op(_LOAD_FAST_BORROW, (-- value)) {
@@ -109,7 +109,7 @@ dummy_func(void) {
109109
value = GETLOCAL(oparg);
110110
JitOptRef temp = sym_new_null(ctx);
111111
GETLOCAL(oparg) = temp;
112-
value = PyJitRef_RemoveUnique(value);
112+
assert(!PyJitRef_IsUnique(value));
113113
}
114114

115115
op(_STORE_ATTR_INSTANCE_VALUE, (offset/1, value, owner -- o)) {

0 commit comments

Comments
 (0)