chfast added a comment. In https://reviews.llvm.org/D56214 similar pattern match was applied in AggressiveInstCombine. Do you want me to submit test cases from there? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D136015/new/ https://reviews.llvm.org/D136015