[PATCH] D107883: [RISCV] Select vector mul by 2 to a vector add.

Fraser Cormack via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 11 09:08:30 PDT 2021


frasercrmck added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td:783
 
+foreach vti = AllIntegerVectors in {
+  // Emit mul by 2 as an add since it might be faster.
----------------
I don't think this code is tested by this patch (via fixed-length vectors or VP intrinsics)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D107883



More information about the llvm-commits mailing list