3 ms·
When in doubt, look at the disassembly, thank god for godbolt.
by mhh__ 5y ago
When in doubt, look at the disassembly, thank god for godbolt.
- mshockwave 5y agoI'll suggest to look at higher-level IRs first. Try to dump SIL (Swift Intermediate Language) first: ``` swiftc -emit-sil ... ``` Then if that doesn't workout, then try to dump LLVM IR: ``` swiftc -emit-ir ... ``` Both compiler flags should be available in out-of-box Swift compiler.
- mhh__ 5y agoIn this case, why? If I'm looking for failed vectorization in particular, I usually start at the bottom and walk upwards.
- saagarjha 5y agoUnfortunately Swift is kind of verbose to read and doesn't really look good in Godbolt (this is why I didn't link it–also, it only does Intel). Instead I compiled on my own machine and opened the binary in Ghidra.