[llvm-commits] [llvm] r166260 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Duncan Sands baldrick at free.fr
Fri Oct 19 00:39:25 PDT 2012


Hi Michael,

> --- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
> +++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Thu Oct 18 22:17:00 2012
> @@ -8629,9 +8629,9 @@
>       //    (extract_subvec (concat V1, V2, ...), i)
>       // Into:
>       //    Vi if possible
> -    for (unsigned i = 0, e = V->getNumOperands(); i != e; ++i)
> -      if (V->getOperand(i).getValueType() != NVT)
> -        return SDValue();
> +    // Only operand 0 is checked as 'concat' assumes all inputs of the same type.

assumes all inputs of the same type -> requires all inputs to have the same type

Ciao, Duncan.

> +    if (V->getOperand(0).getValueType() != NVT)
> +      return SDValue();
>       unsigned Idx = dyn_cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();
>       unsigned NumElems = NVT.getVectorNumElements();
>       assert((Idx % NumElems) == 0 &&
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>




More information about the llvm-commits mailing list