[PATCH] D155916: [RISCV] Remove some instructions from Zvfbfwma by implying Zfbfmin according to the latest spec

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 26 21:49:36 PDT 2023


craig.topper added inline comments.


================
Comment at: llvm/lib/Support/RISCVISAInfo.cpp:985
+static const char *ImpliedExtsZvfbfmin[] = {"zve32f", "zfbfmin"};
+static const char *ImpliedExtsZvfbfwma[] = {"zve32f", "zvfbfmin"};
 static const char *ImpliedExtsZvfh[] = {"zve32f", "zfhmin"};
----------------
You can drop zve32f here now since its in Zvfbfmin


================
Comment at: llvm/lib/Target/RISCV/RISCVFeatures.td:467
                        "'Zvbfmin' (Vector BF16 Converts)",
                        [FeatureStdExtZve32f]>;
 def HasStdExtZvfbfmin : Predicate<"Subtarget->hasStdExtZvfbfmin()">,
----------------
Need to add Zfbfmin here?


================
Comment at: llvm/lib/Target/RISCV/RISCVFeatures.td:475
                        "'Zvfbfwma' (Vector BF16 widening mul-add)",
                        [FeatureStdExtZve32f]>;
 def HasStdExtZvfbfwma : Predicate<"Subtarget->hasStdExtZvfbfwma()">,
----------------
I think we need to add Zvfbfmin here


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

https://reviews.llvm.org/D155916



More information about the llvm-commits mailing list