From fd110e9848a784b3d64278dd7b72114eda1b7c7e Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 19 May 2018 16:57:47 +0000 Subject: [PATCH] compiler: sort predecessors in IR dump output. Makes diffs more useful. --- artiq/compiler/ir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/ir.py b/artiq/compiler/ir.py index 3184a4a61..d54ce0518 100644 --- a/artiq/compiler/ir.py +++ b/artiq/compiler/ir.py @@ -379,7 +379,7 @@ class BasicBlock(NamedValue): lines = ["{}:".format(escape_name(self.name))] if self.function is not None: lines[0] += " ; predecessors: {}".format( - ", ".join([escape_name(pred.name) for pred in self.predecessors()])) + ", ".join(sorted([escape_name(pred.name) for pred in self.predecessors()]))) # Annotated instructions loc = None