]> granicus.if.org Git - llvm/commit
[PowerPC] Don't crash on larger splats achieved through 1-byte splats
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Tue, 8 Aug 2017 13:52:45 +0000 (13:52 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Tue, 8 Aug 2017 13:52:45 +0000 (13:52 +0000)
commitccf6aaba910a9669fbf123282e681686b8447d2e
treecee97a36f1fc056e5954f3bf7aa55cf64e63a9d3
parent0e484a9fbc1c78de235b7973143a7b7fe97529c0
[PowerPC] Don't crash on larger splats achieved through 1-byte splats

We've implemented a 1-byte splat using XXSPLTISB on P9. However, LLVM will
produce a 1-byte splat even for wider element BUILD_VECTOR nodes. This patch
prevents crashing in that situation.

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

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