[NFC][InstCombine] Test what happens if 'unefficient high bit check' pattern is on...
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 13 Sep 2018 20:33:02 +0000 (20:33 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 13 Sep 2018 20:33:02 +0000 (20:33 +0000)
commit083744852ab4a95ccde9fae49377583c181247d7
treef0903d1e87a5058fa41c35aaa43f3defc999cb92
parent7a8dc3dafa85a1bbbb9458f2162ac5d61a9dc91a
[NFC][InstCombine] Test what happens if 'unefficient high bit check' pattern is on both sides.

Came up in https://reviews.llvm.org/D52001#1233827
While we don't do a good job here, we at least want to make
sure that we don't have any inf-loops.

llvm-svn: 342171
llvm/test/Transforms/InstCombine/icmp-uge-of-not-of-shl-allones-by-bits-and-val-to-icmp-eq-of-lshr-val-by-bits-and-0.ll
llvm/test/Transforms/InstCombine/icmp-ugt-of-shl-1-by-bits-and-val-to-icmp-eq-of-lshr-val-by-bits-and-0.ll
llvm/test/Transforms/InstCombine/icmp-ule-of-shl-1-by-bits-and-val-to-icmp-ne-of-lshr-val-by-bits-and-0.ll
llvm/test/Transforms/InstCombine/icmp-ult-of-not-of-shl-allones-by-bits-and-val-to-icmp-ne-of-lshr-val-by-bits-and-0.ll