delena added a comment. Vector 'getelementptr' with scalar base is an opportunity for gather/scatter intrinsic to generate a better sequence. While looking for uniform base, we want to use the scalar base pointer of GEP, if exists. Repository: rL LLVM http://reviews.llvm.org/D11121