RKSimon added a comment. We're already doing some constant pool extraction with getTargetShuffleMaskIndices/getTargetShuffleMaskConstant - what if we generalized that? Repository: rL LLVM https://reviews.llvm.org/D23313