• Keith Randall's avatar
    cmd/compile: don't combine load+op if the op has SymAddr arguments · 05bbec73
    Keith Randall authored
    By combining the load+op, we may force the op to happen earlier in
    the store chain. That might force the SymAddr operation earlier, and
    in particular earlier than its corresponding VarDef. That leads to
    an invalid schedule, so avoid that.
    
    This is kind of a hack to work around the issue presented. I think
    the underlying problem, that LEAQ is not directly ordered with respect
    to its vardef, is the real problem. The benefit of this CL is that
    it fixes the immediate issue, is small, and obviously won't break
    anything. A real fix for this issue is much more invasive.
    
    The go binary is unchanged in size.
    This situation just doesn't occur very often.
    
    Fixes #28445
    
    Change-Id: I13a765e13f075d5b6808a355ef3c43cdd7cd47b6
    Reviewed-on: https://go-review.googlesource.com/c/153641
    Run-TryBot: Keith Randall <khr@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarCherry Zhang <cherryyz@google.com>
    05bbec73
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...