[PATCH] D125460: [RISCV] remove useless code

LiqinWeng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 16 05:55:18 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd95513ae3a73: [RISCV] remove useless code (authored by Miss_Grape).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125460/new/

https://reviews.llvm.org/D125460

Files:
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h


Index: llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
===================================================================
--- llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
+++ llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
@@ -171,9 +171,6 @@
 
   bool isLegalToVectorizeReduction(const RecurrenceDescriptor &RdxDesc,
                                    ElementCount VF) const {
-    if (!ST->hasVInstructions())
-      return false;
-
     if (!VF.isScalable())
       return true;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125460.429692.patch
Type: text/x-patch
Size: 492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220516/c38d381e/attachment.bin>


More information about the llvm-commits mailing list