Skip to content

Commit cd95fe7

Browse files
committed
[NVPTX] handle v2f32 for LDU/LDG
1 parent 3655113 commit cd95fe7

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
@@ -1279,7 +1279,8 @@ bool NVPTXDAGToDAGISel::tryLDGLDU(SDNode *N) {
12791279
EltVT = EltVT.getVectorElementType();
12801280
// vectors of 8/16bits type are loaded/stored as multiples of v4i8/v2x16
12811281
// elements.
1282-
if ((EltVT == MVT::f16 && OrigType == MVT::v2f16) ||
1282+
if ((EltVT == MVT::f32 && OrigType == MVT::v2f32) ||
1283+
(EltVT == MVT::f16 && OrigType == MVT::v2f16) ||
12831284
(EltVT == MVT::bf16 && OrigType == MVT::v2bf16) ||
12841285
(EltVT == MVT::i16 && OrigType == MVT::v2i16) ||
12851286
(EltVT == MVT::i8 && OrigType == MVT::v4i8)) {

0 commit comments

Comments
 (0)