• Alexandru Moșoi's avatar
    cmd/compile: fix no-opt build after moving decomposing user functions · 13f74db3
    Alexandru Moșoi authored
    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: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    13f74db3
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...