mirror of https://github.com/m-labs/artiq.git
Revert "compiler: rein in overzealous cast monomorphization."
This reverts commit 4305903dde
.
This broke the monomorphizer/round.py test.
This commit is contained in:
parent
4305903dde
commit
218720cfa7
|
@ -13,10 +13,9 @@ class CastMonomorphizer(algorithm.Visitor):
|
||||||
def visit_CallT(self, node):
|
def visit_CallT(self, node):
|
||||||
self.generic_visit(node)
|
self.generic_visit(node)
|
||||||
|
|
||||||
if ((types.is_builtin(node.func.type, "int") or
|
if (types.is_builtin(node.func.type, "int") or
|
||||||
types.is_builtin(node.func.type, "int32") or
|
types.is_builtin(node.func.type, "int32") or
|
||||||
types.is_builtin(node.func.type, "int64")) and
|
types.is_builtin(node.func.type, "int64")):
|
||||||
types.is_var(node.type)):
|
|
||||||
typ = node.type.find()
|
typ = node.type.find()
|
||||||
if (not types.is_var(typ["width"]) and
|
if (not types.is_var(typ["width"]) and
|
||||||
builtins.is_int(node.args[0].type) and
|
builtins.is_int(node.args[0].type) and
|
||||||
|
|
Loading…
Reference in New Issue