From 44d0a354099d7a9e5aa07af772120611d0012982 Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 17 Nov 2015 00:59:40 +0300 Subject: [PATCH] transforms.iodelay_estimator: actually iterate to fixpoint. --- artiq/compiler/transforms/iodelay_estimator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/artiq/compiler/transforms/iodelay_estimator.py b/artiq/compiler/transforms/iodelay_estimator.py index 9487fde0a..f8c190fb4 100644 --- a/artiq/compiler/transforms/iodelay_estimator.py +++ b/artiq/compiler/transforms/iodelay_estimator.py @@ -108,7 +108,10 @@ class IODelayEstimator(algorithm.Visitor): return try: + old_delay = typ.delay.find() typ.delay.unify(delay) + if typ.delay.find() != old_delay: + self.changed = True except types.UnificationError as e: printer = types.TypePrinter() diag = diagnostic.Diagnostic("fatal",