[NFC][InstCombine] PR38708 - inefficient pattern for high-bits checking 3.
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 13 Sep 2018 21:34:47 +0000 (21:34 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 13 Sep 2018 21:34:47 +0000 (21:34 +0000)
commitd2316d756e2f3827ec662aee05d786d039b3d568
tree1c7370008c70f7aef88e16ea39dae8d9fd8f01df
parentef600cbd86db579f1dc490b2cb65808d6ff7067f
[NFC][InstCombine] PR38708 - inefficient pattern for high-bits checking 3.

The last, non-canonical variant:
https://godbolt.org/z/aCMsPk
https://rise4fun.com/Alive/I6f

It can only happen due to the extra use on the inner shift.
But here it is ok.

https://bugs.llvm.org/show_bug.cgi?id=38708

llvm-svn: 342184
llvm/test/Transforms/InstCombine/icmp-uge-of-add-of-shl-one-by-bits-to-allones-and-val-to-icmp-eq-of-lshr-val-by-bits-and-0.ll [new file with mode: 0644]
llvm/test/Transforms/InstCombine/icmp-ult-of-add-of-shl-one-by-bits-to-allones-and-val-to-icmp-ne-of-lshr-val-by-bits-and-0.ll [new file with mode: 0644]