]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: don't attach statement marks to OpPhi
authorDavid Chase <drchase@google.com>
Tue, 1 Oct 2019 15:05:59 +0000 (11:05 -0400)
committerDavid Chase <drchase@google.com>
Fri, 4 Oct 2019 16:54:10 +0000 (16:54 +0000)
OpPhi nodes tend to disappear or get rearranged,
and cause statement marks to vanish.

Change-Id: I2f5a222903b7fcd0d1a72e8f6d7e156036b23f30
Reviewed-on: https://go-review.googlesource.com/c/go/+/198481
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/compile/internal/ssa/numberlines.go

index 3e6afd72ff4cd4e220a1c2b0049fdbd4b5e31054..68195e9b656b1d22bf5cba257ac366524b4a1f44 100644 (file)
@@ -15,7 +15,7 @@ func isPoorStatementOp(op Op) bool {
        switch op {
        // Note that Nilcheck often vanishes, but when it doesn't, you'd love to start the statement there
        // so that a debugger-user sees the stop before the panic, and can examine the value.
-       case OpAddr, OpLocalAddr, OpOffPtr, OpStructSelect,
+       case OpAddr, OpLocalAddr, OpOffPtr, OpStructSelect, OpPhi,
                OpIMake, OpStringMake, OpSliceMake, OpStructMake0, OpStructMake1, OpStructMake2, OpStructMake3, OpStructMake4,
                OpConstBool, OpConst8, OpConst16, OpConst32, OpConst64, OpConst32F, OpConst64F:
                return true