Does the swift compiler have the ability to report which loops/map
s it was able to vectorize? like -vec-report
in the intel c compilers
Clang and LLVM support optimization remarks:
https://clang.llvm.org/docs/UsersManual.html#options-to-emit-optimization-reports
I'm not sure if it just works or not if you try passing something like -Xcc -Rpass=loop-vectorize
through Swift, but it's worth a shot.
i tried a
swift build -c release -Xcc -Rpass=loop-vectorize
in one of my projects but nothing extra was printed.