RKSimon added a comment. What is preventing is from performing this in InstCombine? I don't think this pattern will emerge in SelectionDAG Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145299/new/ https://reviews.llvm.org/D145299