3 ms·
I imagine Clang and GCC have growing test-suites to defend against regressions. I wonder if they share them.
by MaxBarraclough 6y ago
I imagine Clang and GCC have growing test-suites to defend against regressions. I wonder if they share them.
- wyldfire 6y agoThey both do, yes. LLVM's [1] includes (some of?) gcc's, the reverse may also be true. LLVM also has extensive unit tests that can exercise codegen and backend functionality. [1] https://github.com/llvm/llvm-test-suite https://github.com/llvm/llvm-test-suite
- sesuximo 6y agoClang writes a subset of LLVM IR, and other types of IR are supported but very poorly optimized/tested/etc. The LLVM docs say you should generate what Clang generates to avoid regressions.