1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
From: Siu Kwan Lam <1929845+sklam@users.noreply.github.com>
Origin: https://github.com/numba/numba/pull/8545
Date: Wed, 14 Sep 2022 12:30:11 -0500
Subject: Don't dump CACHE bytecode
---
numba/core/bytecode.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/numba/core/bytecode.py b/numba/core/bytecode.py
index e75432c..39abce2 100644
--- a/numba/core/bytecode.py
+++ b/numba/core/bytecode.py
@@ -264,7 +264,8 @@ class ByteCode(object):
return ' '
return '\n'.join('%s %10s\t%s' % ((label_marker(i),) + i)
- for i in self.table.items())
+ for i in self.table.items()
+ if i[1].opname != "CACHE")
@classmethod
def _compute_used_globals(cls, func, table, co_consts, co_names):
|