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.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Minor nit, but LGTM.
llvm/test/CodeGen/PowerPC/crash.ll | ||
---|---|---|
18 | Please add a comment: ; A BUILD_VECTOR of 1 element caused a crash in combineBVOfConsecutiveLoads(). ; Test that this is no longer the case. |
Please add a comment: