From: Chandler Carruth Date: Thu, 3 Jul 2014 22:57:44 +0000 (+0000) Subject: [x86] Clarify that this lowering only applies to vectors and is only X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19cff8205e3f48aef5b9b9dde749e474403558b2;p=platform%2Fupstream%2Fllvm.git [x86] Clarify that this lowering only applies to vectors and is only used when we have SSE2. llvm-svn: 212300 --- diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 67fa64b..7488cec 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -15481,15 +15481,14 @@ static SDValue LowerScalarVariableShift(SDValue Op, SelectionDAG &DAG, static SDValue LowerShift(SDValue Op, const X86Subtarget* Subtarget, SelectionDAG &DAG) { - MVT VT = Op.getSimpleValueType(); SDLoc dl(Op); SDValue R = Op.getOperand(0); SDValue Amt = Op.getOperand(1); SDValue V; - if (!Subtarget->hasSSE2()) - return SDValue(); + assert(VT.isVector() && "Custom lowering only for vector shifts!"); + assert(Subtarget->hasSSE2() && "Only custom lower when we have SSE2!"); V = LowerScalarImmediateShift(Op, DAG, Subtarget); if (V.getNode())