Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NativeAOT-LLVM] Improve wasmjit-diff.ps1 #2397

Open
SingleAccretion opened this issue Sep 8, 2023 · 0 comments
Open

[NativeAOT-LLVM] Improve wasmjit-diff.ps1 #2397

SingleAccretion opened this issue Sep 8, 2023 · 0 comments
Labels
area-NativeAOT-LLVM LLVM generation for Native AOT compilation (including Web Assembly)

Comments

@SingleAccretion
Copy link

SingleAccretion commented Sep 8, 2023

The script we now have is nice, and incredibly useful already, but lacking in many important respects.

We need:

  1. Ability to easily diff LLVM output as well as WASM output.
  2. Ability to compile single functions. There are two "levels" to this feature:
    • Ability to construct a --singlemethod-based ILC command line given a diff index.
    • Ability to diff the resulting object file - this would enable single-function WASM diffs.

The latter feature is critical for debugging, as right now you can only guess what caused the diffs. Now, single-method diffing can never be 100% faithful of the final compilation and in fact often isn't due to ILC's and LLVM's global analyses, but it is not really possible to do much about it short of replaying the whole compilation for one method, which is very slow.

@jkotas jkotas added the area-NativeAOT-LLVM LLVM generation for Native AOT compilation (including Web Assembly) label Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-NativeAOT-LLVM LLVM generation for Native AOT compilation (including Web Assembly)
Projects
None yet
Development

No branches or pull requests

2 participants