3 ms·
SIMD being an exception still (unless maybe Intel compiler + C/C++ + proper annotations)
by rootw0rm 3y ago
SIMD being an exception still (unless maybe Intel compiler + C/C++ + proper annotations)
- alphaglosined 3y agoLLVM can do an awful lot with SIMD that isn't visible in clang. We have experienced this with LDC in D. What I've been told is that LDC produces better IR than clang (I haven't compared, I only know that LDC is practically magical from both mine and other peoples experiments). About the only thing I've seen that has problems with inlining is inline assembly. Intrinsics are fine (which you don't need thanks to vectorization being practically magical as long as you do some annotations like assert and get the memory layout right).