Thanks Martin for finding the issue! The vectorizer can be disabled from Mesa side, so it's not needed to recompile LLVM... See the attached patch. I tested it with Debian LLVM 7 and Mesa git and works as expected.