cmd/compile: missed bounds check elimination when paired slices are resliced #70062
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Performance
Milestone
When the lengths of two slices are "paired" (
dst = dst[:len(src)]
), the compiler is smart enough to apply ifs to both, but if you reslice them the pairing is lost.The text was updated successfully, but these errors were encountered: