diff --git a/artiq/compiler/iodelay.py b/artiq/compiler/iodelay.py index 3941ea22e..ec9a73729 100644 --- a/artiq/compiler/iodelay.py +++ b/artiq/compiler/iodelay.py @@ -213,7 +213,7 @@ class Max(Expr): operand = operand.fold(vars) if isinstance(operand, Const): consts.append(operand.value) - else: + elif operand not in exprs: exprs.append(operand) if any(consts): exprs.append(Const(max(consts)))