[llvm] r344255 - [DAGCombiner] move comment closer to the corresponding code; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 11 09:07:25 PDT 2018


Author: spatel
Date: Thu Oct 11 09:07:25 2018
New Revision: 344255

URL: http://llvm.org/viewvc/llvm-project?rev=344255&view=rev
Log:
[DAGCombiner] move comment closer to the corresponding code; NFC 

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

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=344255&r1=344254&r2=344255&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Thu Oct 11 09:07:25 2018
@@ -15451,14 +15451,13 @@ SDValue DAGCombiner::ReplaceExtractVecto
 }
 
 SDValue DAGCombiner::visitEXTRACT_VECTOR_ELT(SDNode *N) {
-  // (vextract (scalar_to_vector val, 0) -> val
   SDValue InVec = N->getOperand(0);
   EVT VT = InVec.getValueType();
   EVT NVT = N->getValueType(0);
-
   if (InVec.isUndef())
     return DAG.getUNDEF(NVT);
 
+  // (vextract (scalar_to_vector val, 0) -> val
   if (InVec.getOpcode() == ISD::SCALAR_TO_VECTOR) {
     // Check if the result type doesn't match the inserted element type. A
     // SCALAR_TO_VECTOR may truncate the inserted element and the




More information about the llvm-commits mailing list