7 ms·
You didn't understand how Souper works. They already found a lot of very good optimizations, which were included into LLVM proper. Check out http://blog.regehr.
by rurban 11y ago
You didn't understand how Souper works. They already found a lot of very good optimizations, which were included into LLVM proper. Check out http://blog.regehr.org/archives/1146 http://blog.regehr.org/archives/1146 and http://blog.regehr.org/archives/1192 http://blog.regehr.org/archives/1192
Here he talks about the end-results of Souper and Alive, which should be presented more user-friendly and generalized, with some help from a solver.
Encoding every single edge-case into the optimizer is not as good as finding better generalizations, automatically.
- andrewchambers 11y agoI understand that is the approach. Another idea I want to see tried is a source code annotation which indicates to an llvm plugin to run machine specific super optimization on a specific basic block and cache the result. Might be an interesting way to enhance tight loops. A third idea I had would be to use super optimization as a way of automatically generating isel selectors with only the lowest level descriptions of what the ir and the opcodes do. That is harvest a program for ir sequences, automatically find good mappings to assembly constructs, automatically emit a backend.