Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: stack-allocate arrays of len/cap defined in local, non-escaping variable #24577
You can still get a stack allocation by making
it may be worth to extend the stack-allocation optimization to include bounds defined in local, non-escaping variables.