What do gcc's auto-vectorization messages mean?
问题 I have some code that I would like to run fast, so I was hoping I could persuade gcc (g++) to vectorise some of my inner loops. My compiler flags include -O3 -msse2 -ffast-math -ftree-vectorize -ftree-vectorizer-verbose=5 but gcc fails to vectorize the most important loops, giving me the following not-really-very-verbose-at-all messages: Not vectorized: complicated access pattern. and Not vectorized: unsupported use in stmt. My questions are (1) what exactly do these mean? (How complicated