Correct a comment - this is not a sign extension.
authorDuncan Sands <baldrick@free.fr>
Tue, 13 Jan 2009 14:04:14 +0000 (14:04 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 13 Jan 2009 14:04:14 +0000 (14:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62166 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp

index 2a0b408fc8daab54cf69c0fc14b8581e9dfbf95c..45df410ae2c1c27d0dd4c9f82f2ba9d32117347d 100644 (file)
@@ -329,7 +329,7 @@ SDValue DAGTypeLegalizer::PromoteIntRes_EXTRACT_VECTOR_ELT(SDNode *N) {
   if (TLI.isBigEndian())
     std::swap(Lo, Hi);
 
-  // Signed extend to the promoted type.
+  // Extend to the promoted type.
   SDValue Odd = DAG.getNode(ISD::TRUNCATE, MVT::i1, OldIdx);
   SDValue Res = DAG.getNode(ISD::SELECT, NewVT, Odd, Hi, Lo);
   return DAG.getNode(ISD::ANY_EXTEND, TLI.getTypeToTransformTo(OldVT), Res);