RKSimon added a comment. Shouldn't this be in InstCombinerImpl::SimplifyDemandedVectorElts ? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D128890/new/ https://reviews.llvm.org/D128890