mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-09 16:45:03 +00:00
When PerformBuildVectorCombine, avoid creating a X86ISD::VZEXT_LOAD of
an illegal type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63380 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c8d7bc850d
commit
7ad9b51278
@ -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…
x
Reference in New Issue
Block a user