Skip to content

cmd/compile: internal compiler error: live values in unreachable block #81771

Closed

Description

@ALTree
$ gotip version
go version go1.28-devel_8fc7e764 Fri Sep 25 19:44:14 2026 -0700 linux/amd64
package p

import "simd/archsimd"

type S struct {
	f archsimd.Float32x8
}

type I interface {
	M(S) rune
}

func f(i I) rune {
	for range []int{} {
		_ = i.M(S{(archsimd.Float32x8{})})
	}
	return i.M(S{(archsimd.Float32x8{})})
}

$ GOEXPERIMENT=simd gotip build crash.go 
# command-line-arguments
./crash.go:14:17: internal compiler error: 'f': live values in unreachable block b6: [v25]

goroutine 13 [running]:
runtime/debug.Stack()
	../desktop/gotip/src/runtime/debug/stack.go:26 +0x5e
cmd/compile/internal/base.FatalfAt({0xf53c93b8?, 0x32c7?}, {0x32c7f53c9358, 0x2d}, {0x32c7f53c2990, 0x3, 0x3})
	../desktop/gotip/src/cmd/compile/internal/base/print.go:232 +0x18b
cmd/compile/internal/base.Fatalf(...)
	../desktop/gotip/src/cmd/compile/internal/base/print.go:197
cmd/compile/internal/ssagen.(*ssafn).Fatalf(0x32c7f536a940?, {0x5c6cddd8?, 0x2576606a?}, {0x105907e, 0x27}, {0x32c7f5274660, 0x2, 0x18?})
	../desktop/gotip/src/cmd/compile/internal/ssagen/ssa.go:8066 +0x185
cmd/compile/internal/ssa.(*Func).FatalfWithPos(0x32c7f49ac380, {0x1?, 0x0?}, {0x105907e, 0x27}, {0x32c7f5274660, 0x2, 0x2})
	../desktop/gotip/src/cmd/compile/internal/ssa/func.go:801 +0x190
cmd/compile/internal/ssa.(*Block).Fatalf(...)
	../desktop/gotip/src/cmd/compile/internal/ssa/block.go:478
cmd/compile/internal/ssacompile.deadcode(0x32c7f49ac380)
	../desktop/gotip/src/cmd/compile/internal/ssacompile/deadcode.go:152 +0xedf
cmd/compile/internal/ssacompile.Compiler.Compile({}, 0x32c7f49ac380, {0x1a0a148, 0x0})
	../desktop/gotip/src/cmd/compile/internal/ssacompile/compile.go:112 +0xa6d
...

Activity

  1. added
    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.
    on Sep 26, 2026
  2. added this to the Go1.28 milestone on Sep 26, 2026
  3. added
    invalidThis issue is empty, incomplete (e.g. unanswered template questions), or spam.
    on Sep 26, 2026
  4. removed
    invalidThis issue is empty, incomplete (e.g. unanswered template questions), or spam.
    on Sep 26, 2026
  5. thepudds commented on Sep 26, 2026

    @thepudds
    Member

    This seemed to bisect to 7f7ce37:

      first BAD:   7f7ce373ed | 2026-09-17 22:31 | cmd/compile: teach zcse to not lift arch-feature-gated instructions
      GOOD parent: 67f43483f0 | 2026-09-17 22:22 | cmd/vendor: update x/tools to e75ea804503b65fa96c1291e9714bc8ca0a89361
    

    CC @randall77 @JunyangShao

  6. gopherbot commented on Sep 26, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/839565 mentions this issue: cmd/compile: put simd zero values in the right block

  7. added
    FixPendingIssues that have a fix which has not yet been reviewed or submitted.
    on Sep 29, 2026
  8. added a commit that references this issue on Oct 15, 2026
    d61b240
  9. removed
    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

FixPendingIssues that have a fix which has not yet been reviewed or submitted.compiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions