simplify python code
This commit is contained in:
parent
a6d804ede8
commit
8de97dddfd
@ -503,7 +503,7 @@ class GenericIntrinsic(object):
|
|||||||
# must be a power of two
|
# must be a power of two
|
||||||
assert width & (width - 1) == 0
|
assert width & (width - 1) == 0
|
||||||
def recur(processed, untouched):
|
def recur(processed, untouched):
|
||||||
if untouched == []:
|
if not untouched:
|
||||||
ret = processed[0]
|
ret = processed[0]
|
||||||
args = processed[1:]
|
args = processed[1:]
|
||||||
yield MonomorphicIntrinsic(self._platform, self.intrinsic, width,
|
yield MonomorphicIntrinsic(self._platform, self.intrinsic, width,
|
||||||
|
Loading…
Reference in New Issue
Block a user