]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: improve stability of generated code
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 30 Jun 2016 18:13:24 +0000 (11:13 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 30 Jun 2016 20:10:16 +0000 (20:10 +0000)
commit95427d2549a613fd1fb925ed118194488d6ec6bb
treecfc9047a0d41a30c0e3bfc4e48b2ceab26e64acd
parent03d152f36fd3b64e0c0c86e93c50f5bafeb8e9b3
[dev.ssa] cmd/compile: improve stability of generated code

If the files in cmd/compile/internal/ssa/gen
are passed to go run in a different order,
e.g. due to shell differences or manual entry,
then the order of constants in opGen churns.

Sort archs by name to enforce stability.
The movement of the PPC constants is a one time cost.

Change-Id: Iebcfdb9e612d7dd8cde575f920f1292891f2f24a
Reviewed-on: https://go-review.googlesource.com/24680
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/gen/main.go
src/cmd/compile/internal/ssa/opGen.go