• David Chase's avatar
    cmd/compile: adjust Pos setting for "empty" blocks · a042221c
    David Chase authored
    Plain blocks that contain only uninteresting instructions
    (that do not have reliable Pos information themselves)
    need to have their Pos left unset so that they can
    inherit it from their successors.  The "uninteresting"
    test was not properly applied and not properly defined.
    OpFwdRef does not appear in the ssa.html debugging output,
    but at the time of the test these instructions did appear,
    and it needs to be part of the test.
    
    Fixes #22365.
    
    Change-Id: I99e5b271acd8f6bcfe0f72395f905c7744ea9a02
    Reviewed-on: https://go-review.googlesource.com/74252
    Run-TryBot: David Chase <drchase@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarKeith Randall <khr@golang.org>
    a042221c
issue18902.go 4.03 KB