3 ms·
> If you really can write better assembly than LLVM, please: Don't write any more assembler by hand - write IR and create new LLVM optimisers instead. It'll ben
by amelius 10y ago
> If you really can write better assembly than LLVM, please: Don't write any more assembler by hand - write IR and create new LLVM optimisers instead. It'll benefit everybody, not only you. Think about it - you won't need to write the same optimisations all over again on your next project!
Very noble goal, but I can imagine that it can take a lot more time to do that than just writing a bunch of assembler instructions.
Perhaps there could be some intermediate approach, where LLVM can learn from a IR/assembly pair and improve itself (?)
- brigade 10y agoSure, you can file a bug with a snippet and expected assembly and make the devs do the work :P They generally seem pretty willing if it's simple, and if it isn't then it'd probably be a pretty involved (but interesting!) side project for you anyway.
- dTal 10y ago>LLVM can learn from a IR/assembly pair and improve itself Oof, Reflections on Trusting Trust just got more interesting...