[PATCH] D150798: [RISCV] Implement storeOfVectorConstantIsCheap hook to prevent store merging at VL=2
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 17 10:42:08 PDT 2023
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.h:538
+ // in instructions even after we add a vector constant load.
+ return NumElem >= 4;
+ }
----------------
I notice X86 uses > 2 and your patch description talks about VL=2 and mentions being similar to X86, but you've used 4 here. Is 3 supported by store merging?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150798/new/
https://reviews.llvm.org/D150798
More information about the llvm-commits
mailing list