Skip to content

Commit 5eb9acf

Browse files
committed
[Polly] Revert changes to isl Python code
This partially reverts b605dab, dropping the changes to isl. This is an external library, so we shouldn't modify it unless strictly necessary.
1 parent 3efe832 commit 5eb9acf

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

polly/lib/External/isl/interface/python.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ static void print_persistent_callback_failure_check(int indent,
347347
printf(fmt, 0);
348348
printf(", '%s') and ", callback_name.c_str());
349349
printf(fmt, 0);
350-
printf(".%s['exc_info'] is not None:\n", callback_name.c_str());
350+
printf(".%s['exc_info'] != None:\n", callback_name.c_str());
351351
print_indent(indent, " exc_info = ");
352352
printf(fmt, 0);
353353
printf(".%s['exc_info'][0]\n", callback_name.c_str());

polly/lib/External/isl/libisl-gdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def invoke(self, arg, from_tty):
7070
arg = gdb.parse_and_eval(arg)
7171
printer = str_lookup_function(arg)
7272

73-
if printer is None:
73+
if printer == None:
7474
print("No isl printer for this type")
7575
return
7676

@@ -90,7 +90,7 @@ def str_lookup_function(val):
9090
lookup_tag = val.type.target()
9191
regex = re.compile("^isl_(.*)$")
9292

93-
if lookup_tag is None:
93+
if lookup_tag == None:
9494
return None
9595

9696
m = regex.match(str(lookup_tag))

polly/lib/External/isl/python/isl.py.top

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ from ctypes import *
33
from ctypes.util import find_library
44

55
isl_dyld_library_path = os.environ.get('ISL_DYLD_LIBRARY_PATH')
6-
if isl_dyld_library_path is not None:
6+
if isl_dyld_library_path != None:
77
os.environ['DYLD_LIBRARY_PATH'] = isl_dyld_library_path
88
try:
99
isl = cdll.LoadLibrary(isl_dlname)
@@ -29,7 +29,7 @@ class Context:
2929

3030
@staticmethod
3131
def getDefaultInstance():
32-
if Context.defaultInstance is None:
32+
if Context.defaultInstance == None:
3333
Context.defaultInstance = Context()
3434
return Context.defaultInstance
3535

0 commit comments

Comments
 (0)