[llvm-branch-commits] [llvm] [RISCV] Support memcmp expansion for vectors (PR #114517)
Pengcheng Wang via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jun 9 21:44:16 PDT 2025
================
@@ -2512,9 +2512,11 @@ bool RISCVTTIImpl::isProfitableToSinkOperands(
RISCVTTIImpl::TTI::MemCmpExpansionOptions
RISCVTTIImpl::enableMemCmpExpansion(bool OptSize, bool IsZeroCmp) const {
TTI::MemCmpExpansionOptions Options;
+ // Here we assume that a core that has implemented unaligned vector access
+ // should also have implemented unaligned scalar access.
----------------
wangpc-pp wrote:
Hmmm, you are right that we only generate vle8.v here. I will change that.
https://github.com/llvm/llvm-project/pull/114517
More information about the llvm-branch-commits
mailing list