]> granicus.if.org Git - llvm/commit
[DAGTypeLegalizer] Handle widening truncate to vector of i1.
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Tue, 21 Mar 2017 10:24:14 +0000 (10:24 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Tue, 21 Mar 2017 10:24:14 +0000 (10:24 +0000)
commit92b0e9b3cb849ab348873242cdb74e8b72b2c74c
treedbeff2bcf9b4a72b71ac3104dcb06213504f009d
parent8b2132abbea2f562fcc51468318d55c736f9cad0
[DAGTypeLegalizer]  Handle widening truncate to vector of i1.

Previously, PromoteIntRes_TRUNCATE() did not handle the case where
the operand needs widening, which resulted in llvm_unreachable().

This patch adds the needed handling, along with a test case.

Review: Eli Friedman, Simon Pilgrim.
https://reviews.llvm.org/D31077

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298357 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
test/CodeGen/SystemZ/vec-trunc-to-i1.ll [new file with mode: 0644]