mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01: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
@ -7602,6 +7602,10 @@ static SDValue PerformBuildVectorCombine(SDNode *N, SelectionDAG &DAG,
|
||||
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