Auto-vectorization optimization passes cost


I see that the BBVectorize optimization pass is awfully slow in the kind of LLVM IR code that we generate and JIT (tested with LLVM 3.8). I also activate LoopVectorize and SLPVectorize which are much faster. Since AFAIR BBVectorize was developed first in the history of auto-vectorization passes, what is the status of these different passes? Can we safely only use LoopVectorize and SLPVectorize ? Do they cover the same use cases that BBVectorize was solving?


Stéphane Letz