Skip to content

Commit c375389

Browse files
committed
[NVPTX] handle v2f32 for LDU/LDG
1 parent dfa0918 commit c375389

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,8 @@ bool NVPTXDAGToDAGISel::tryLDGLDU(SDNode *N) {
12771277
EltVT = EltVT.getVectorElementType();
12781278
// vectors of 8/16bits type are loaded/stored as multiples of v4i8/v2x16
12791279
// elements.
1280-
if ((EltVT == MVT::f16 && OrigType == MVT::v2f16) ||
1280+
if ((EltVT == MVT::f32 && OrigType == MVT::v2f32) ||
1281+
(EltVT == MVT::f16 && OrigType == MVT::v2f16) ||
12811282
(EltVT == MVT::bf16 && OrigType == MVT::v2bf16) ||
12821283
(EltVT == MVT::i16 && OrigType == MVT::v2i16) ||
12831284
(EltVT == MVT::i8 && OrigType == MVT::v4i8)) {

0 commit comments

Comments
 (0)