[llvm-commits] [llvm] r91181 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Dan Gohman gohman at apple.com
Fri Dec 11 15:26:08 PST 2009


Author: djg
Date: Fri Dec 11 17:26:08 2009
New Revision: 91181

URL: http://llvm.org/viewvc/llvm-project?rev=91181&view=rev
Log:
Delete an unnecessary line. The VTSDNode on a SIGN_EXTEND_REG is never
a vector type.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp?rev=91181&r1=91180&r2=91181&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Fri Dec 11 17:26:08 2009
@@ -2296,7 +2296,6 @@
     EVT ExtraVT = cast<VTSDNode>(Node->getOperand(1))->getVT();
     EVT VT = Node->getValueType(0);
     EVT ShiftAmountTy = TLI.getShiftAmountTy();
-    if (ExtraVT.isVector()) ExtraVT = ExtraVT.getVectorElementType();
     if (VT.isVector()) {
       ShiftAmountTy = VT;
       VT = VT.getVectorElementType();





More information about the llvm-commits mailing list