Skip to content

Commit 7ff9669

Browse files
authored
[ISel/RISCV] Refactor isPromotedOpNeedingSplit (NFC) (#146059)
1 parent be9502b commit 7ff9669

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7044,13 +7044,10 @@ static unsigned getRISCVVLOp(SDValue Op) {
70447044

70457045
static bool isPromotedOpNeedingSplit(SDValue Op,
70467046
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-
return true;
7053-
return false;
7047+
return (Op.getValueType() == MVT::nxv32f16 &&
7048+
(Subtarget.hasVInstructionsF16Minimal() &&
7049+
!Subtarget.hasVInstructionsF16())) ||
7050+
Op.getValueType() == MVT::nxv32bf16;
70547051
}
70557052

70567053
static SDValue SplitVectorOp(SDValue Op, SelectionDAG &DAG) {

0 commit comments

Comments
 (0)