mirror of https://github.com/m-labs/artiq.git
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))]
|
lines = ["{}:".format(escape_name(self.name))]
|
||||||
if self.function is not None:
|
if self.function is not None:
|
||||||
lines[0] += " ; predecessors: {}".format(
|
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
|
# Annotated instructions
|
||||||
loc = None
|
loc = None
|
||||||
|
|
Loading…
Reference in New Issue