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

Differential analysis tool for optimizations #1

Open
ghost opened this issue Dec 22, 2020 · 1 comment
Open

Differential analysis tool for optimizations #1

ghost opened this issue Dec 22, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 22, 2020

Migrated from riscv-collab/v8#291:

This idea is based on this poster from this year's LLVM Developers' Meeting: https://www.lowrisc.org/blog/2020/10/how-we-used-differential-testing-to-rapidly-find-and-fix-missed-optimisation-opportunities-in-llvms-risc-v-backend/llvm-dev-meeting-oct-2020-poster.pdf

We could implement something similar to help identify optimizations that we are missing in v8 that already exist in gcc and LLVM. This could be implemented by compiling C code, generated by a fuzzer, into WASM, then running it through v8 and dumping the generated assembly code and comparing it to the assembly code which gets generated by LLVM/gcc for the same C code.

@ghost
Copy link
Author

ghost commented Dec 22, 2020

This repo has the code used for the above mentioned poster. I found that it is easy to modify it to work with a different compiler. Of course, our situation is a bit different, since V8 is not just a compiler, but we can still dump generated assembly code, so we should be able to use this tool.

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

No branches or pull requests

0 participants