We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cfa49c commit c3dac82Copy full SHA for c3dac82
llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
@@ -660,12 +660,14 @@ bool isTrue16Inst(unsigned Opc) {
660
661
FPType getFPDstSelType(unsigned Opc) {
662
const FP4FP8DstByteSelInfo *Info = getFP4FP8DstByteSelHelper(Opc);
663
- if (Info && Info->HasFP8DstByteSel)
+ if (!Info)
664
+ return FPType::None;
665
+ if (Info->HasFP8DstByteSel)
666
return FPType::FP8;
- else if (Info && Info->HasFP4DstByteSel)
667
+ if (Info->HasFP4DstByteSel)
668
return FPType::FP4;
- else
- return FPType::None;
669
+
670
671
}
672
673
unsigned mapWMMA2AddrTo3AddrOpcode(unsigned Opc) {
0 commit comments