[PATCH] D30672: [NVPTX] Fixed lowering of unaligned loads/stores of f16 scalars and vectors.

Justin Lebar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 6 17:14:44 PST 2017


jlebar accepted this revision.
jlebar added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lib/Target/NVPTX/NVPTXISelLowering.cpp:2076
+  // v2f16 is legal, so we can't rely on legalizer to handle unaligned
+  // stores and have to handle it here.
+  if (Op.getValueType() == MVT::v2f16) {
----------------
s/stores/loads/?


================
Comment at: lib/Target/NVPTX/NVPTXISelLowering.cpp:2121
+  // v2f16 is legal, so we can't rely on legalizer to handle unaligned
+  // loads and have to handle it here.
+  if (VT == MVT::v2f16 &&
----------------
s/loads/stores/?


https://reviews.llvm.org/D30672





More information about the llvm-commits mailing list