spatel accepted this revision. spatel added a comment. This revision is now accepted and ready to land. LGTM. For reference, we do have existing test coverage for these in test/CodeGen/X86/combine-sdiv.ll and combine-udiv.ll. Repository: rL LLVM https://reviews.llvm.org/D52661