[PATCH] D35566: [DAG] Extend visitSCALAR_TO_VECTOR optimization to truncated vector.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 27 11:33:40 PDT 2017


efriedma added inline comments.


================
Comment at: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:15767
+        if (VT.getScalarType() == InVecT.getVectorElementType() && 
+            VT.getVectorNumElements() != InVecT.getVectorNumElements()) {
+          MVT IdxTy = TLI.getVectorIdxTy(DAG.getDataLayout());
----------------
"VT.getVectorNumElements() != InVecT.getVectorNumElements()" check is redundant.


https://reviews.llvm.org/D35566





More information about the llvm-commits mailing list