[llvm-commits] [llvm] r136355 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp

Nadav Rotem nadav.rotem at intel.com
Thu Jul 28 07:38:46 PDT 2011


Author: nadav
Date: Thu Jul 28 09:38:46 2011
New Revision: 136355

URL: http://llvm.org/viewvc/llvm-project?rev=136355&view=rev
Log:
CR fix: The ANY_EXTEND can be removed because the input and putput type must be
identical.


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

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp?rev=136355&r1=136354&r2=136355&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp Thu Jul 28 09:38:46 2011
@@ -2838,12 +2838,11 @@
 
   DebugLoc dl = N->getDebugLoc();
   SDValue V0 = GetPromotedInteger(N->getOperand(0));
-  SDValue ConvertedVector = DAG.getNode(ISD::ANY_EXTEND, dl, NOutVT, V0);
 
   SDValue ConvElem = DAG.getNode(ISD::ANY_EXTEND, dl,
     NOutVTElem, N->getOperand(1));
   return DAG.getNode(ISD::INSERT_VECTOR_ELT, dl, NOutVT,
-    ConvertedVector, ConvElem, N->getOperand(2));
+    V0, ConvElem, N->getOperand(2));
 }
 
 SDValue DAGTypeLegalizer::PromoteIntOp_EXTRACT_VECTOR_ELT(SDNode *N) {





More information about the llvm-commits mailing list