llvm.org GIT mirror llvm / 7ad9b51
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 Mon P Wang 10 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
76007600 // Load must not be an extload.
76017601 if (LD->getExtensionType() != ISD::NON_EXTLOAD)
76027602 return SDValue();
7603
7603
7604 // Load type should legal type so we don't have to legalize it.
7605 if (!TLI.isTypeLegal(VT))
7606 return SDValue();
7607
76047608 SDVTList Tys = DAG.getVTList(VT, MVT::Other);
76057609 SDValue Ops[] = { LD->getChain(), LD->getBasePtr() };
76067610 SDValue ResNode = DAG.getNode(X86ISD::VZEXT_LOAD, Tys, Ops, 2);