Skip to content

internal/cabi: call optimization#1272

Merged
xushiwei merged 5 commits intogoplus:mainfrom
visualfc:cabi_opt
Sep 10, 2025
Merged

internal/cabi: call optimization#1272
xushiwei merged 5 commits intogoplus:mainfrom
visualfc:cabi_opt

Conversation

@visualfc
Copy link
Member

@visualfc visualfc commented Sep 6, 2025

call optimization: check IR alloca/load/store => direct ptr / bitcast / memcpy

transform func body

func params

  • AttrPointer (byval) : check alloca ptr
  • AttrWidthType : bitcast, check alloca ptr
  • AttrWidthType2: bitcast, check alloca ptr
  • AttrExtract: none

func results

  • AttrPointer sret : check memcpy
  • AttrWidthType : check alloca ptr, bitcast
  • AttrWidthType2: check alloca ptr, bitcast
  • AttrExtract: none

transform call instr

  • AttrPointer sret : check direct ptr
  • AttrPointer (byval) : check direct ptr or memcpy( unsupport byval, arm/arm64 )
  • AttrWidthType
  • AttrWidthType2
  • AttrExtract

@codecov
Copy link

codecov bot commented Sep 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.22%. Comparing base (b1d95bb) to head (dd50d4d).
⚠️ Report is 33 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1272      +/-   ##
==========================================
+ Coverage   90.17%   90.22%   +0.05%     
==========================================
  Files          42       42              
  Lines       11796    11898     +102     
==========================================
+ Hits        10637    10735      +98     
- Misses       1026     1030       +4     
  Partials      133      133              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@visualfc visualfc changed the title [WIP] internal/cabi: call optimization internal/cabi: call optimization Sep 8, 2025
@visualfc visualfc force-pushed the cabi_opt branch 3 times, most recently from cf27ca3 to fb192b9 Compare September 9, 2025 08:15
@xushiwei xushiwei merged commit d5ad4d9 into goplus:main Sep 10, 2025
43 checks passed
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.

2 participants