aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-01-17 08:23:44 +0000
committerCraig Topper <craig.topper@gmail.com>2012-01-17 08:23:44 +0000
commit8b5a6b63dd2e04ba770f216345402b7c80e8f228 (patch)
tree7a4e9b6a689db267a43df3806c0aa05a0b8b9125 /lib
parent58bd1510a4fea29b1ea57d6a6c4038eeea0264a2 (diff)
downloadexternal_llvm-8b5a6b63dd2e04ba770f216345402b7c80e8f228.zip
external_llvm-8b5a6b63dd2e04ba770f216345402b7c80e8f228.tar.gz
external_llvm-8b5a6b63dd2e04ba770f216345402b7c80e8f228.tar.bz2
Remove unnecessary AVX check from an assert. hasSSE2 is enough.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148295 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/X86/X86ISelLowering.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp
index a0fd431..0431108 100644
--- a/lib/Target/X86/X86ISelLowering.cpp
+++ b/lib/Target/X86/X86ISelLowering.cpp
@@ -10167,8 +10167,7 @@ SDValue X86TargetLowering::LowerShift(SDValue Op, SelectionDAG &DAG) const {
return DAG.getNode(ISD::MUL, dl, VT, Op, R);
}
if (VT == MVT::v16i8 && Op->getOpcode() == ISD::SHL) {
- assert((Subtarget->hasSSE2() || Subtarget->hasAVX()) &&
- "Need SSE2 for pslli/pcmpeq.");
+ assert(Subtarget->hasSSE2() && "Need SSE2 for pslli/pcmpeq.");
// a = a << 5;
Op = DAG.getNode(ISD::INTRINSIC_WO_CHAIN, dl, VT,