[llvm] [RISCV] Add +optimized-nfN-segment-load-store (PR #114414)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 31 20:32:32 PDT 2024
================
@@ -716,6 +716,28 @@ RISCVTTIImpl::getMaskedMemoryOpCost(unsigned Opcode, Type *Src, Align Alignment,
return getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, CostKind);
}
+static bool hasOptimizedSegmentLoadStore(unsigned NF,
+ const RISCVSubtarget *ST) {
+ switch (NF) {
+ case 2:
----------------
lukel97 wrote:
I considered it but remembered coming across some PRs where people were actively trying to remove uses of macros in LLVM, e.g. https://github.com/llvm/llvm-project/pull/105551
I'm not strongly opinionated on this, is there a general stance we should take here?
https://github.com/llvm/llvm-project/pull/114414
More information about the llvm-commits
mailing list