cmd/compile: functions using ellipsis arguments are not inlined #18361
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Performance
Milestone
I have two functions foo and bar that have identical bodies except that foo uses ellipsis and bar uses arrays. bar is inlined while foo is not. This is a performance bug, not a correctness one.
What version of Go are you using (
go version
)?tip:
go version devel +1106512 Fri Dec 16 22:30:12 2016 +0000 linux/amd64
What operating system and processor architecture are you using (
go env
)?Linux / Amd64
What did you do?
https://play.golang.org/p/EP4LSzd9X3
Generated code contains no call to bar, but a call to foo.
What did you expect to see?
foo (using ellipsis) and bar (using arrays) inlined
What did you see instead?
Only bar was inlined.
The text was updated successfully, but these errors were encountered: