[llvm-commits] [llvm] r63380 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Mon P Wang
wangmp at apple.com
Thu Jan 29 23:07:40 PST 2009
Author: wangmp
Date: Fri Jan 30 01:07:40 2009
New Revision: 63380
URL: http://llvm.org/viewvc/llvm-project?rev=63380&view=rev
Log:
When PerformBuildVectorCombine, avoid creating a X86ISD::VZEXT_LOAD of
an illegal type.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=63380&r1=63379&r2=63380&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Fri Jan 30 01:07:40 2009
@@ -7601,7 +7601,11 @@
// 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);
More information about the llvm-commits
mailing list