cmd/compile: avoid unnecessary bounds check in range loop #52019
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Performance
Using go1.18.0
Consider the following:
This currently compiles to code that includes:
where line 9 is:
Given that
i
comes from therange
oversource
, there should be no reason thatsource[i]
should ever panic.The text was updated successfully, but these errors were encountered: