Skip to content

src/cmd/internal/obj/riscv: reuse high offset value when accessing stack - #137

Open
newborn22 wants to merge 1 commit into
go1.25.6-zte-devfrom
opt_large_offset_access
Open

newborn22 wants to merge 1 commit into
go1.25.6-zte-devfrom
opt_large_offset_access

Conversation

@newborn22

@newborn22 newborn22 commented Apr 27, 2026

Copy link
Copy Markdown
Collaborator

Related Issue(s) & Descriptions

The background has been described in golang#79298 and corresponding PR is submitted in golang#79299.

Performance data

goos: linux
goarch: riscv64
pkg: github.com/tetratelabs/wazero/internal/integration_test/bench
cpu: SG2044
                                                   │ wazero_base.txt │        wazero_stack_opt.txt         │
                                                   │     sec/op      │   sec/op     vs base                │
Invocation/interpreter/fib_for_20                       10.660m ± 4%   8.456m ± 7%  -20.67% (p=0.000 n=10)
Invocation/interpreter/string_manipulation_size_50       4.125m ± 5%   3.630m ± 5%  -12.00% (p=0.000 n=10)
Invocation/interpreter/random_mat_mul_size_20            27.02m ± 7%   22.55m ± 1%  -16.55% (p=0.000 n=10)
geomean                                                  10.59m        8.846m       -16.48%

Checklist

  • Tests were added or are not required
  • Documentation was added or is not required

@newborn22
newborn22 force-pushed the opt_large_offset_access branch 4 times, most recently from 7115355 to e467316 Compare May 8, 2026 05:50
@newborn22 newborn22 changed the title Opt large offset access src/cmd/internal/obj/riscv: reuse high offset value when accessing stack May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant