]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.ssa] cmd/compile: split decompose pass in two
authorKeith Randall <khr@golang.org>
Mon, 8 Feb 2016 19:00:43 +0000 (11:00 -0800)
committerDavid Chase <drchase@google.com>
Tue, 9 Feb 2016 02:18:31 +0000 (02:18 +0000)
commit7f7f7cddec65b48b35845c5fb537bb59bb7ecca6
tree472568b42e8ebe21732e3d32dddaca96fe3b6322
parent9763f6f8cf6c62d19fd108e023dd759e457d0389
[dev.ssa] cmd/compile: split decompose pass in two

A first pass to decompose user types (structs, maybe
arrays someday), and a second pass to decompose builtin
types (strings, interfaces, slices, complex).  David wants
this for value range analysis so he can have structs decomposed
but slices and friends will still be intact and he can deduce
things like the length of a slice is >= 0.

Change-Id: Ia2300d07663329b51ed6270cfed21d31980daa7c
Reviewed-on: https://go-review.googlesource.com/19340
Run-TryBot: David Chase <drchase@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/compile.go
src/cmd/compile/internal/ssa/decompose.go