mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-28 20:53:35 +08:00
compiler: sort predecessors in IR dump output.
Makes diffs more useful.
This commit is contained in:
parent
dc1c4ebf1d
commit
fd110e9848
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user