[RISCV] remove useless code

When legality check for vectoring reduction, hasVInstructions() check be unneeded. RISCV can only loop vectorization with hasVInstructions()

Reviewed By: kito-cheng, craig.topper

Differential Revision: https://reviews.llvm.org/D125460
This commit is contained in:
Liqin.Weng
2022-05-16 12:53:32 +00:00
parent aa656f6c2d
commit d95513ae3a

View File

@@ -171,9 +171,6 @@ public:
bool isLegalToVectorizeReduction(const RecurrenceDescriptor &RdxDesc,
ElementCount VF) const {
if (!ST->hasVInstructions())
return false;
if (!VF.isScalable())
return true;