This is an archive of the discontinued LLVM Phabricator instance.

[DAGCombiner] [NFC] Improve X div/rem 1 fold
ClosedPublic

Authored by xbolva00 on Sep 28 2018, 10:24 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

xbolva00 created this revision.Sep 28 2018, 10:24 AM
spatel accepted this revision.Sep 28 2018, 11:32 AM

LGTM.

For reference, we do have existing test coverage for these in test/CodeGen/X86/combine-sdiv.ll and combine-udiv.ll.

This revision is now accepted and ready to land.Sep 28 2018, 11:32 AM
This revision was automatically updated to reflect the committed changes.