]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix no-opt build after moving decomposing user functions
authorAlexandru Moșoi <mosoi@google.com>
Mon, 14 Mar 2016 18:11:19 +0000 (19:11 +0100)
committerAlexandru Moșoi <alexandru@mosoi.ro>
Mon, 14 Mar 2016 18:44:10 +0000 (18:44 +0000)
commit13f74db304fdf6dc6241485d6e6f3f6a0327633c
tree3bfa2ac4020d5e9ebce71ee0aa53ee732fd9cc24
parenta4e31d42ee294c95a1c76cb73d2141485a635886
cmd/compile: fix no-opt build after moving decomposing user functions

decompose-builtin pass requires an opt pass, but -N disables
late-opt, the only opt pass (out of two) that happens
after decompose-builtin.  This CL enables both 'opt' and 'late opt'
passes. The extra compile time for 'late opt' in negligible
since most rewrites were already done in the first 'opt'
(also measured before). We should put some effort in splitting the
generic rules into required and optional.

Also update generic.rules comments about lowering
of StringMake and SliceMake.

Tested with GO_GCFLAGS=-N ./all.bash

Change-Id: I92999681aaa02587b6dc6e32ce997a91f1fc9499
Reviewed-on: https://go-review.googlesource.com/20682
Run-TryBot: Alexandru Moșoi <alexandru@mosoi.ro>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/ssa/compile.go
src/cmd/compile/internal/ssa/gen/generic.rules