• Josh Bleecher Snyder's avatar
    cmd/compile: ignore some dead code during escape analysis · 1e29cd8c
    Josh Bleecher Snyder authored
    This is the escape analysis analog of CL 37499.
    
    Fixes #12397
    Fixes #16871
    
    The only "moved to heap" decisions eliminated by this
    CL in std+cmd are:
    
    cmd/compile/internal/gc/const.go:1514: moved to heap: ac
    cmd/compile/internal/gc/const.go:1515: moved to heap: bd
    cmd/compile/internal/gc/const.go:1516: moved to heap: bc
    cmd/compile/internal/gc/const.go:1517: moved to heap: ad
    cmd/compile/internal/gc/const.go:1546: moved to heap: ac
    cmd/compile/internal/gc/const.go:1547: moved to heap: bd
    cmd/compile/internal/gc/const.go:1548: moved to heap: bc
    cmd/compile/internal/gc/const.go:1549: moved to heap: ad
    cmd/compile/internal/gc/const.go:1550: moved to heap: cc_plus
    cmd/compile/internal/gc/export.go:162: moved to heap: copy
    cmd/compile/internal/gc/mpfloat.go:66: moved to heap: b
    cmd/compile/internal/gc/mpfloat.go:97: moved to heap: b
    
    Change-Id: I0d420b69c84a41ba9968c394e8957910bab5edea
    Reviewed-on: https://go-review.googlesource.com/37508Reviewed-by: 's avatarDavid Chase <drchase@google.com>
    1e29cd8c
esc.go 60 KB