Skip to content

Commit c3dac82

Browse files
Pravin JagtapPravin Jagtap
authored andcommitted
addressed review comment.
1 parent 3cfa49c commit c3dac82

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -660,12 +660,14 @@ bool isTrue16Inst(unsigned Opc) {
660660

661661
FPType getFPDstSelType(unsigned Opc) {
662662
const FP4FP8DstByteSelInfo *Info = getFP4FP8DstByteSelHelper(Opc);
663-
if (Info && Info->HasFP8DstByteSel)
663+
if (!Info)
664+
return FPType::None;
665+
if (Info->HasFP8DstByteSel)
664666
return FPType::FP8;
665-
else if (Info && Info->HasFP4DstByteSel)
667+
if (Info->HasFP4DstByteSel)
666668
return FPType::FP4;
667-
else
668-
return FPType::None;
669+
670+
return FPType::None;
669671
}
670672

671673
unsigned mapWMMA2AddrTo3AddrOpcode(unsigned Opc) {

0 commit comments

Comments
 (0)