dotnet / runtimelab

This repo is for experimentation and exploring new ideas that may or may not make it into the main dotnet/runtime repo.
MIT License
1.42k stars 199 forks source link

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

Open SingleAccretion opened 1 year ago

SingleAccretion commented 1 year ago

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.

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.