Skip to content

perf: initialize only native LLVM target#403

Merged
DaniPopes merged 2 commits into
mainfrom
dani/init-native-llvm-target
Jul 13, 2026
Merged

perf: initialize only native LLVM target#403
DaniPopes merged 2 commits into
mainfrom
dani/init-native-llvm-target

Conversation

@DaniPopes

Copy link
Copy Markdown
Collaborator

Initialize only the host LLVM target instead of every target built into LLVM. revmc creates target machines for the native triple, so retaining the other target backends is unnecessary. Initialization failures are now propagated as well.

Binary size

The revmc CLI was built against LLVM 22.1.8 component archives with llvm-prefer-static; both outputs were confirmed to have no dynamic LLVM dependency.

Profile Before After Change
profiling 254,582,504 bytes 177,592,928 bytes -76,989,576 bytes (-30.24%)
maxperf 143,331,920 bytes 76,399,256 bytes -66,932,664 bytes (-46.70%)

@DaniPopes
DaniPopes enabled auto-merge (squash) July 13, 2026 22:29
@codspeed-hq

codspeed-hq Bot commented Jul 13, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 71 untouched benchmarks


Comparing dani/init-native-llvm-target (7840dc8) with main (b5b60c1)

Open in CodSpeed

@DaniPopes
DaniPopes merged commit 520462a into main Jul 13, 2026
37 of 40 checks passed
@DaniPopes
DaniPopes deleted the dani/init-native-llvm-target branch July 13, 2026 22:47
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