diff options
author | Nate Begeman <natebegeman@mac.com> | 2007-12-11 01:41:33 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2007-12-11 01:41:33 +0000 |
commit | 844e0f9def5d1caa28e1f2612cb4226e14fd22b3 (patch) | |
tree | cd0ecdaf22457d2b28cb81c5a6fbdd78949535f7 /lib | |
parent | ad93c4f936d220570535711262e0fff8857f798a (diff) | |
download | llvm-844e0f9def5d1caa28e1f2612cb4226e14fd22b3.tar.gz llvm-844e0f9def5d1caa28e1f2612cb4226e14fd22b3.tar.bz2 llvm-844e0f9def5d1caa28e1f2612cb4226e14fd22b3.tar.xz |
x86 doesn't actually want to custom lower v3i32
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index c0001c0f97..5835ae33ae 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -600,6 +600,9 @@ X86TargetLowering::X86TargetLowering(TargetMachine &TM) // Custom lower build_vector, vector_shuffle, and extract_vector_elt. for (unsigned VT = (unsigned)MVT::v16i8; VT != (unsigned)MVT::v2i64; VT++) { + // Do not attempt to custom lower non-power-of-2 vectors + if (!isPowerOf2_32(MVT::getVectorNumElements(VT))) + continue; setOperationAction(ISD::BUILD_VECTOR, (MVT::ValueType)VT, Custom); setOperationAction(ISD::VECTOR_SHUFFLE, (MVT::ValueType)VT, Custom); setOperationAction(ISD::EXTRACT_VECTOR_ELT, (MVT::ValueType)VT, Custom); |