• Austin Clements's avatar
    [dev.power64] 9g: fix nilopt · 81001928
    Austin Clements authored
    Previously, nilopt was disabled on power64x because it threw
    away "seemly random segments of code."  Indeed, excise on
    power64x failed to preserve the link field, so it excised not
    only the requested instruction but all following instructions
    in the function.  Fix excise to retain the link field while
    otherwise zeroing the instruction.
    
    This makes nilopt safe on power64x.  It still fails
    nilptr3.go's tests for removal of repeated nil checks because
    those depend on also optimizing away repeated loads, which
    doesn't currently happen on power64x.
    
    LGTM=dave, rsc
    R=rsc, dave
    CC=golang-codereviews
    https://golang.org/cl/168120043
    81001928
Name
Last commit
Last update
..
5a Loading commit data...
5c Loading commit data...
5g Loading commit data...
5l Loading commit data...
6a Loading commit data...
6c Loading commit data...
6g Loading commit data...
6l Loading commit data...
8a Loading commit data...
8c Loading commit data...
8g Loading commit data...
8l Loading commit data...
9a Loading commit data...
9c Loading commit data...
9g Loading commit data...
9l Loading commit data...
addr2line Loading commit data...
api Loading commit data...
cc Loading commit data...
cgo Loading commit data...
dist Loading commit data...
fix Loading commit data...
gc Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
ld Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
yacc Loading commit data...