• Matthew Dempsky's avatar
    cmd/compile: refactor constant rewriting · 0250ef91
    Matthew Dempsky authored
    Extract all rewrite-to-OLITERAL expressions to use a single setconst
    helper function.
    
    Does not pass toolstash-check for two reasons:
    
    1) We now consistently clear Left/Right/etc when rewriting Nodes into
    OLITERALs, which results in their inlining complexity being correctly
    computed. So more functions can now be inlined.
    
    2) We preserve Pos, so PC line tables change somewhat.
    
    Change-Id: I2b5c293bee7c69c2ccd704677f5aba4ec40e3155
    Reviewed-on: https://go-review.googlesource.com/103860
    Run-TryBot: Matthew Dempsky <mdempsky@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarDaniel Martí <mvdan@mvdan.cc>
    0250ef91
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
buildid Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
test2json Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...