samparker added a comment. I thought the normal way to stop combining was to return the original node. Could you not manually replace N with Res and then return N? Repository: rL LLVM https://reviews.llvm.org/D53190