OSDN Git Service

[LegalizeDAG] Fix legalization of SETCC
authorMikhail Maltsev <mikhail.maltsev@arm.com>
Fri, 16 Feb 2018 09:35:16 +0000 (09:35 +0000)
committerMikhail Maltsev <mikhail.maltsev@arm.com>
Fri, 16 Feb 2018 09:35:16 +0000 (09:35 +0000)
commit053d9bfd93a7e9eadd61127aca6d3dfdb41d1b02
tree673f09b9f85a33aec063a40bf9a17487c6538969
parentca353f0f9c18cfec853638237cf4a5f6db3101ed
[LegalizeDAG] Fix legalization of SETCC

Summary:
Currently when expanding a SETCC node into a SELECT_CC, LLVM uses
an incorrect type for determining BooleanContent of the result. This
patch fixes the issue.

Fixes PR36079.

Reviewers: rogfer01, javed.absar, efriedma

Reviewed By: efriedma

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@325325 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
test/CodeGen/ARM/2018-02-13-PR36079.ll [new file with mode: 0644]