commit | 0415b1810bbf93f434f1c561e172bf24c1cb37dc | [log] [tgz] |
---|---|---|
author | Tim Northover <tnorthover@apple.com> | Wed Sep 04 11:57:17 2013 +0000 |
committer | Tim Northover <tnorthover@apple.com> | Wed Sep 04 11:57:17 2013 +0000 |
tree | c2d7a5cda9e53e3e9e710e4b24749681a6ed8ac6 | |
parent | 7bfabdac4ebf82f9f6a9ee7a00fd948f729dc7fe [diff] |
InstCombine: allow unmasked icmps to be combined with logical ops "(icmp op i8 A, B)" is equivalent to "(icmp op i8 (A & 0xff), B)" as a degenerate case. Allowing this as a "masked" comparison when analysing "(icmp) &/| (icmp)" allows us to combine them in more cases. rdar://problem/7625728 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189931 91177308-0d34-0410-b5e6-96231b3b80d8