Hacker News new | ask | show | jobs
by cfrss 4707 days ago
there is a lot said about the assembly code. I wonder whether it make sense to code it in LLVM IR?
1 comments

There's definitely improvements being made to LLVM to automatically parallelize code (esp unrolling loops) to SIMD.

I haven't personally tried it, but would love for it to match the code quality of hand-cranked assembly... writing it is tedious, error prone, but you do get control over when you preload the cache, the stack, and you can do really cool things with the CPP and macros to "manually inline" things. :-)

And who doesn't like writing a good 'ol fashioned jump table?!

Thanks, btw there was a thread on this topic recently: https://news.ycombinator.com/item?id=6096743