News for hackers. Stuff that matters.
Re:SIMD Instructions Considered Harmful (2017) by ajayjain on Wednesday February 20, 2019 @09:16AM (#19207929)
In some recent work from my group [1], we reduce the complexity of keeping up with new SIMD ISAs by retargeting code between generations. For example, a compiler pass can take code written to target SSE2 (with intrinsics) and emit AVX-512 - it auto-vectorizes hand-vectorized code. With a more capable compiler, if the ISA grows in complexity, programmers and users of libraries get speedups without rewriting their code or relying on scalar auto-vectorization. However, the x86 ISA growth certainly pushed some complexity on us as compiler writers - we had to write a pass to retarget instructions!

[1] https://www.nextgenvec.org/#revec

Re:SIMD Instructions Considered Harmful (2017) by jabl on Wednesday February 20, 2019 @10:30AM (#19208566)
Recently a patch was contributed to gcc that converts mmx intrinsics to sse. Also the gcc power target supports x86 vector intrinsics, converting them to the power equivalents.

It's not as ambitious as your approach though, more like a 1:1 translation and thus cannot take advantage of wider vectors.

Re:SIMD Instructions Considered Harmful (2017) by glangdale on Wednesday February 20, 2019 @05:18PM (#19212620)
That patch primarily is there to avoid the pitfalls of MMX on modern architectures; it is gradually becoming deprecated. On SKX, operations that are available on both ports 0 and 1 for SSE or AVX are only available on port 0 for MMX. So code that uses MMX is getting half the throughput (which may or may not matter, but still).
Re:SIMD Instructions Considered Harmful (2017) by jabl on Thursday February 21, 2019 @02:52PM (#19219985)
Thanks for the explanation, I wasn't aware of the reasoning behind it. I would guess by now all actively maintained performance-critical code has been rewritten in something more modern, so it certainly makes sense for Intel to minimize the number of gates they dedicate to MMX.
Re:SIMD Instructions Considered Harmful (2017) by wmu on Wednesday February 20, 2019 @01:19PM (#19210396)
Sorry for a non-constructive comment, just wanted to say your paper is great. :)
Re:SIMD Instructions Considered Harmful (2017) by ajayjain on Sunday February 24, 2019 @02:39PM (#19240158)
Thank you! :)