Skip to content

Commit 34a8bc1

Browse files
committed
fixup! Address review comment
1 parent 274c3f1 commit 34a8bc1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16631,12 +16631,8 @@ struct NodeExtensionHelper {
1663116631
}
1663216632

1663316633
bool isSupportedFPExtend(MVT NarrowEltVT, const RISCVSubtarget &Subtarget) {
16634-
if (NarrowEltVT == MVT::f32)
16635-
return true;
16636-
// Any f16 extension will need zvfh
16637-
if (NarrowEltVT == MVT::f16 && Subtarget.hasVInstructionsF16())
16638-
return true;
16639-
return false;
16634+
return (NarrowEltVT == MVT::f32 ||
16635+
(NarrowEltVT == MVT::f16 && Subtarget.hasVInstructionsF16()));
1664016636
}
1664116637

1664216638
bool isSupportedBF16Extend(MVT NarrowEltVT, const RISCVSubtarget &Subtarget) {

0 commit comments

Comments
 (0)