commit | c18e8bc0df80e4ec1660a9f44ac766426733d972 | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Mon Sep 11 19:42:41 2017 +0000 |
committer | Sanjay Patel <spatel@rotateright.com> | Mon Sep 11 19:42:41 2017 +0000 |
tree | 28c5c52f33c2a2159ab69d7dad3577d9379820b3 | |
parent | e4e1eed1d79d2123d74bcbcb750bc47679b939f1 [diff] |
[InstSimplify] add tests for possible sdiv/srem simplifications; NFC As noted in PR34517, the handling of signed div/rem is not on par with unsigned div/rem. Signed is harder to reason about, but it should be possible to handle at least some of these using the same technique that we use for unsigned: use icmp logic to see if there's a relationship between the quotient and divisor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312938 91177308-0d34-0410-b5e6-96231b3b80d8