OSDN Git Service

[InstCombine] Get rid of select of bittest (PR36950 / PR17564)
authorRoman Lebedev <lebedev.ri@gmail.com>
Sat, 7 Apr 2018 10:37:24 +0000 (10:37 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Sat, 7 Apr 2018 10:37:24 +0000 (10:37 +0000)
commit93f67358758397ca23bf3d618ca1ca34922168dd
treec2ba5c9596f8acf4a5ab611b02a026c19eb38622
parent6bc5d6199da6a3821270c06996dca6f3e91a5c07
[InstCombine] Get rid of select of bittest (PR36950 / PR17564)

Summary:
See [[ https://bugs.llvm.org/show_bug.cgi?id=36950 | PR36950 ]], [[ https://bugs.llvm.org/show_bug.cgi?id=17564 | PR17564 ]], D45065, D45107
https://godbolt.org/g/iAYRup

Alive proof: https://rise4fun.com/Alive/uiH

Testing: `ninja check-llvm`

Reviewers: spatel, craig.topper

Reviewed By: spatel

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D45108

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329492 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineSelect.cpp
test/Transforms/InstCombine/select-of-bittest.ll