nikic added a comment. The handling for this should be inside simplifyWithOpReplaced(). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D150378/new/ https://reviews.llvm.org/D150378