]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add -d=ssa/check/seed=SEED
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 24 Jan 2020 21:52:41 +0000 (13:52 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 2 Mar 2020 22:11:29 +0000 (22:11 +0000)
commit97a268624c9f2830133d2bdfae677f5d99ec82cb
tree6df30d72ce5ca5ca0774c3c4f1054beb5abfa007
parent37fc092be1ffe4906f67eae1c4c7be40f00f89ed
cmd/compile: add -d=ssa/check/seed=SEED

This change adds the option to run the ssa checker with a random seed.
The current system uses a completely fixed seed,
which is good for reproducibility but bad for exploring the state space.

Preserve what we have, but also provide a way for the caller
to provide a seed. The caller can report the seed
alongside any failures.

Change-Id: I2676a8112d8260e6cac86d95d2e8db4d3221aeeb
Reviewed-on: https://go-review.googlesource.com/c/go/+/216418
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/compile.go