[PATCH] D34077: DAGCombine: Combine BUILD_VECTOR to TRUNCATE

Zvi Rackover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 27 10:53:16 PDT 2017


zvi added inline comments.


================
Comment at: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:14231
+  EVT NewVT = VT.getVectorVT(
+      *DAG.getContext(), MVT::getIntegerVT(VT.getScalarSizeInBits() * Stride),
+      NumElems);
----------------
RKSimon wrote:
> Shouldn't this be EVT::getIntegerVT ?
Good catch


https://reviews.llvm.org/D34077





More information about the llvm-commits mailing list