Skip to content

Commit f49320f

Browse files
committed
Refine FPinGPR checking logic
Zdinx implies Zfinx so it's sufficient to check only Zfinx here.
1 parent fe46a46 commit f49320f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9557,7 +9557,7 @@ SDValue RISCVTargetLowering::lowerSELECT(SDValue Op, SelectionDAG &DAG) const {
95579557

95589558
// When there is no cost for GPR <-> FGPR, we can use zicond select for
95599559
// floating value when CondV is int type
9560-
bool FPinGPR = Subtarget.hasStdExtZfinx() || Subtarget.hasStdExtZdinx();
9560+
bool FPinGPR = Subtarget.hasStdExtZfinx();
95619561
bool UseZicondForFPSel = Subtarget.hasStdExtZicond() && FPinGPR &&
95629562
VT.isFloatingPoint() &&
95639563
CondV.getValueType().isInteger();

0 commit comments

Comments
 (0)