Merging r348181:
authorTom Stellard <tstellar@redhat.com>
Thu, 6 Dec 2018 21:36:42 +0000 (21:36 +0000)
committerTom Stellard <tstellar@redhat.com>
Thu, 6 Dec 2018 21:36:42 +0000 (21:36 +0000)
commita3ee448a5f62038da9424572344068f2bbcb3e1e
treeb66d2e819aca579903e2345b9b59e071d2a5b423
parent3315ebed51e7e5e3fc01578455242e9d5f4fdb11
Merging r348181:

------------------------------------------------------------------------
r348181 | lebedevri | 2018-12-03 12:07:58 -0800 (Mon, 03 Dec 2018) | 8 lines

[InstCombine] foldICmpWithLowBitMaskedVal(): disable 2 faulty folds.

These two folds are invalid for this non-constant pattern
when the mask ends up being all-ones:
https://rise4fun.com/Alive/9au
https://rise4fun.com/Alive/UcQM

Fixes https://bugs.llvm.org/show_bug.cgi?id=39861
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_70@348528 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/canonicalize-constant-low-bit-mask-and-icmp-sge-to-icmp-sle.ll
test/Transforms/InstCombine/canonicalize-constant-low-bit-mask-and-icmp-slt-to-icmp-sgt.ll