[PATCH] D45339: [NVPTX] Fixed vectorized LDG for f16.

Bixia Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 5 19:18:40 PDT 2018


bixia added inline comments.


================
Comment at: llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp:1244
+    if (EltVT == MVT::f16 && N->getValueType(0) == MVT::v2f16 &&
+        NumElts % 2 == 0) {
+      EltVT = MVT::v2f16;
----------------
What do we do if NumElts % 2 != 0? Can we assert the situation, assuming that the legalizer can guarantee this?


https://reviews.llvm.org/D45339





More information about the llvm-commits mailing list