Xcode 5 has the ability to enable auto-synthesis in the Apple LLVM 5.0 compiler. But how can I determine if a given loop has been successfully indexed?
Using gcc from the command line, I can set the -ftree-vectorizer-verbose flag and get some (supposedly annoyingly cryptic) messages whenever the loop failed to draw, but using this new Xcode option my code simply compiles with "no issues" , and I canβt say if my loops were vectorized or not.
Of course, I had a profile to see if there was a difference in speed, but actually my concern is to know that any given inner loop has not been vectorized, so that I can try to change it to what will be .
So, is there any way in Xcode to set LLVM verbosity to the level at which it will report vectorization, or is there some other way to get Xcode to tell me when the loop was not vectorized, and what is the reason if it isn't?
I am compiling C ++ for OS X, if that matters.
c ++ vectorization xcode llvm
Nathaniel
source share