diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2018-10-11 16:07:25 +0000 | 
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2018-10-11 16:07:25 +0000 | 
| commit | 4875662e57037468d01c00304ba93fdc3650b492 (patch) | |
| tree | 3e35884134e1a04d99eed63f6691d3ea34c37c97 /llvm | |
| parent | e98be183117c3d5537d322a0d126ee92a8330543 (diff) | |
| download | bcm5719-llvm-4875662e57037468d01c00304ba93fdc3650b492.tar.gz bcm5719-llvm-4875662e57037468d01c00304ba93fdc3650b492.zip  | |
[DAGCombiner] move comment closer to the corresponding code; NFC 
llvm-svn: 344255
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index eca5d8369eb..4a80c1d358d 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -15451,14 +15451,13 @@ SDValue DAGCombiner::ReplaceExtractVectorEltOfLoadWithNarrowedLoad(  }  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  | 

