[PowerPC] Fix the assert of combineBVOfConsecutiveLoads when element num is 1
authorQingShan Zhang <qshanz@cn.ibm.com>
Thu, 20 Sep 2018 03:09:15 +0000 (03:09 +0000)
committerQingShan Zhang <qshanz@cn.ibm.com>
Thu, 20 Sep 2018 03:09:15 +0000 (03:09 +0000)
commitcae9425a3c4a2af6a306c1aa5c8acfd27136f3fc
treee3ff984758903c788149407e756635da04e7c8f1
parentf45de47c59680c57939cdc55952afcebf2e90bfe
[PowerPC] Fix the assert of combineBVOfConsecutiveLoads when element num is 1
Building a vector out of multiple loads can be converted to a load of the vector type if the loads are consecutive.
But the special condition is that the element number is 1, such as <1 x i128>. So just early exit to fix the assert.

Patch By: wuzish (Zixuan Wu)
Differential Revision: https://reviews.llvm.org/D52072

llvm-svn: 342611
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/crash.ll