mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-20 02:28:23 +00:00
When PerformBuildVectorCombine, avoid creating a X86ISD::VZEXT_LOAD of
an illegal type. llvm-svn: 63380
This commit is contained in:
parent
e442452ade
commit
5db99442e4
@ -7601,7 +7601,11 @@ static SDValue PerformBuildVectorCombine(SDNode *N, SelectionDAG &DAG,
|
||||
// Load must not be an extload.
|
||||
if (LD->getExtensionType() != ISD::NON_EXTLOAD)
|
||||
return SDValue();
|
||||
|
||||
|
||||
// Load type should legal type so we don't have to legalize it.
|
||||
if (!TLI.isTypeLegal(VT))
|
||||
return SDValue();
|
||||
|
||||
SDVTList Tys = DAG.getVTList(VT, MVT::Other);
|
||||
SDValue Ops[] = { LD->getChain(), LD->getBasePtr() };
|
||||
SDValue ResNode = DAG.getNode(X86ISD::VZEXT_LOAD, Tys, Ops, 2);
|
||||
|
Loading…
Reference in New Issue
Block a user