]> granicus.if.org Git - llvm/commit
[PowerPC] Fix ICE when truncating some vectors
authorQiu Chaofan <qiucofan@cn.ibm.com>
Tue, 13 Aug 2019 07:53:29 +0000 (07:53 +0000)
committerQiu Chaofan <qiucofan@cn.ibm.com>
Tue, 13 Aug 2019 07:53:29 +0000 (07:53 +0000)
commit215d62ecff808d1ad418bbe5d5a2ae7bc1d0f055
treef4016883d9a091932b3faf6cce61aebbd73f858c
parent06a590b474ced9210e2d34062038cf3c4fe5386c
[PowerPC] Fix ICE when truncating some vectors

The legalizer would hit an assertion on PowerPC platform when truncating
a vector whose size is not power of 2.  This patch is to add a check to
prevent vectors with such odd-size elements from being custom lowered.

Reviewed By: Hal Finkel

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368654 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/pr25080.ll [new file with mode: 0644]