File: 0021-Don-t-dump-CACHE-bytecode.patch

package info (click to toggle)
numba 0.56.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 23,672 kB
  • sloc: python: 183,651; ansic: 15,370; cpp: 2,259; javascript: 424; sh: 308; makefile: 174
file content (23 lines) | stat: -rw-r--r-- 811 bytes parent folder | download
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):