cmd/compile: unnecessary bounds check #64902
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Performance
Milestone
go1.21.5
https://godbolt.org/z/Tda3649sv
I would assume, since i is non negative,
i % len(t)
should always be in bounds? But the assembly contains apanicIndex
.The text was updated successfully, but these errors were encountered: