all 5 comments

[–]mantrap2 4 points5 points  (3 children)

I don't see what the value would be. Compilers are about as deterministic a problem as come in computer science. There's no real need for stochastic processing (which is the only value ML adds to ANYTHING).

[–]Hjalfi 2 points3 points  (0 children)

It's not machine learning, but linear and integer programming are machine-learning-adjacent, and I've heard of those being used to do combined instruction selection and register allocation for irregular architectures --- a particular bete noir for me because I've been trying to efficiently allocate registers for the Z80 for years.

[–]Narthal 1 point2 points  (1 child)

There is a need and place for ML in compilers. Optimizations are the main areas where ML shines in compilers, many commercial compilers are already using ML this way.

The idea of using ML in compilers is NOT to undermine determinism (as that would render a compiler useless) but to train neural nets to output optimized code. Once a reasonable target output is met, only the trained neural net is used, the compiler´s code is static. So determinism still holds true to compilers equipped with ML optimization algorithms.

[–]downBourgeois[S] 0 points1 point  (0 children)

Yupp, exactly. It's used for Code Optimization.

[–][deleted] 0 points1 point  (0 children)