diff options
author | Nadav Rotem <nadav.rotem@intel.com> | 2011-09-13 19:17:42 +0000 |
---|---|---|
committer | Nadav Rotem <nadav.rotem@intel.com> | 2011-09-13 19:17:42 +0000 |
commit | aec5861bb6ace3734163c000cb75ca2e22e29caa (patch) | |
tree | b554e33aa701259868dc31f14a20761fc497514c /lib/Target | |
parent | 48ae99fac4010e6bbe5550fd914cc879091049fb (diff) | |
download | llvm-aec5861bb6ace3734163c000cb75ca2e22e29caa.tar.gz llvm-aec5861bb6ace3734163c000cb75ca2e22e29caa.tar.bz2 llvm-aec5861bb6ace3734163c000cb75ca2e22e29caa.tar.xz |
Add vselect target support for targets that do not support blend but do support
xor/and/or (For example SSE2).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139623 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index efbc2ee7dd..a2a140f1b8 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -727,6 +727,7 @@ X86TargetLowering::X86TargetLowering(X86TargetMachine &TM) setOperationAction(ISD::SIGN_EXTEND, (MVT::SimpleValueType)VT, Expand); setOperationAction(ISD::ZERO_EXTEND, (MVT::SimpleValueType)VT, Expand); setOperationAction(ISD::ANY_EXTEND, (MVT::SimpleValueType)VT, Expand); + setOperationAction(ISD::VSELECT, (MVT::SimpleValueType)VT, Expand); for (unsigned InnerVT = (unsigned)MVT::FIRST_VECTOR_VALUETYPE; InnerVT <= (unsigned)MVT::LAST_VECTOR_VALUETYPE; ++InnerVT) setTruncStoreAction((MVT::SimpleValueType)VT, |