]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/ssa: lower builtins much later
authorAlexandru Moșoi <mosoi@google.com>
Thu, 3 Mar 2016 10:13:43 +0000 (11:13 +0100)
committerAlexandru Moșoi <alexandru@mosoi.ro>
Wed, 9 Mar 2016 11:08:59 +0000 (11:08 +0000)
commitdfcb853d9d75116e939b31fa12316fc3e8494845
tree5f3923df7602ebc1c0687d0b75dfdd424efba550
parentaa3650f01976524ad80b2aad987e2d4f655cbe65
cmd/compile/internal/ssa: lower builtins much later

* Move lowering into a separate pass.
* SliceLen/SliceCap is now available to various intermediate passes
which use useful for bounds checking.
* Add a second opt pass to handle the new opportunities

Decreases the code size of binaries in pkg/tool/linux_amd64
by ~45K.

Updates #14564 #14606

Change-Id: I5b2bd6202181c50623a3585fbf15c0d6db6d4685
Reviewed-on: https://go-review.googlesource.com/20172
Run-TryBot: Alexandru Moșoi <alexandru@mosoi.ro>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/compile.go
src/cmd/compile/internal/ssa/gen/dec.rules [new file with mode: 0644]
src/cmd/compile/internal/ssa/gen/decOps.go [new file with mode: 0644]
src/cmd/compile/internal/ssa/gen/generic.rules
src/cmd/compile/internal/ssa/opt.go
src/cmd/compile/internal/ssa/rewritedec.go [new file with mode: 0644]
src/cmd/compile/internal/ssa/rewritegeneric.go