3 ms·
> The result is a fuzzy reproduction of the training input, specifically of the compilers contained within. Is it? I'm somewhat familiar with gcc and clang's s
by astrange 8mo ago
> The result is a fuzzy reproduction of the training input, specifically of the compilers contained within.
Is it? I'm somewhat familiar with gcc and clang's source and it doesn't really particularly look like it to me.
https://github.com/anthropics/claudes-c-compiler/blob/main/src/passes/iv_strength_reduce.rs https://github.com/anthropics/claudes-c-compiler/blob/main/s...
https://llvm.org/doxygen/LoopStrengthReduce_8cpp_source.html https://llvm.org/doxygen/LoopStrengthReduce_8cpp_source.html
https://github.com/gcc-mirror/gcc/blob/master/gcc/gimple-ssa-strength-reduction.cc https://github.com/gcc-mirror/gcc/blob/master/gcc/gimple-ssa...
- gmueckl 8mo agoChecking for similarity with compilers that consist of orders of magnitudes more code probably doesn't reveal much. There many more smaller compilers for C-adjacent languages out there pkus cod3 fragments from text books.
- astrange 8mo agoThere are not many more compilers with the specific optimization pass I linked. Also, I don't think you could reuse code from a different compiler unless you used the same IR.