[PATCH] D34077: DAGCombine: Combine BUILD_VECTOR to TRUNCATE

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 27 09:31:13 PDT 2017


RKSimon added inline comments.


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


https://reviews.llvm.org/D34077





More information about the llvm-commits mailing list