cmd/compile: missed obvious BCE #42603
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Performance
Milestone
Simplified from some real code:
The compiler inserts a bounds check on the first
binary.BigEndian.Uint16(b[:2])
, but not the second one. If you remove thecase 1
case, the compiler can eliminate the bounds check!cc @zdjones @randall77
The text was updated successfully, but these errors were encountered: