Skip to content

Commit e6218f2

Browse files
committed
Check hasVInstructions() rather than hasStdExtV
1 parent 4d5aa5d commit e6218f2

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
@@ -25664,7 +25664,7 @@ bool RISCVTargetLowering::isReassocProfitable(SelectionDAG &DAG, SDValue N0,
2566425664
// Avoid reassociating expressions that can be lowered to vector
2566525665
// multiply accumulate (i.e. add (mul x, y), z)
2566625666
if (N0.getOpcode() == ISD::ADD && N1.getOpcode() == ISD::MUL &&
25667-
(N0.getValueType().isVector() && Subtarget.hasStdExtV()))
25667+
(N0.getValueType().isVector() && Subtarget.hasVInstructions()))
2566825668
return false;
2566925669

2567025670
return true;

0 commit comments

Comments
 (0)