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 be9502b commit 7ff9669Copy full SHA for 7ff9669
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -7044,13 +7044,10 @@ static unsigned getRISCVVLOp(SDValue Op) {
7044
7045
static bool isPromotedOpNeedingSplit(SDValue Op,
7046
const RISCVSubtarget &Subtarget) {
7047
- if (Op.getValueType() == MVT::nxv32f16 &&
7048
- (Subtarget.hasVInstructionsF16Minimal() &&
7049
- !Subtarget.hasVInstructionsF16()))
7050
- return true;
7051
- if (Op.getValueType() == MVT::nxv32bf16)
7052
7053
- return false;
+ return (Op.getValueType() == MVT::nxv32f16 &&
+ (Subtarget.hasVInstructionsF16Minimal() &&
+ !Subtarget.hasVInstructionsF16())) ||
+ Op.getValueType() == MVT::nxv32bf16;
7054
}
7055
7056
static SDValue SplitVectorOp(SDValue Op, SelectionDAG &DAG) {
0 commit comments