[llvm-branch-commits] [llvm] [RISCV] Support memcmp expansion for	vectors (PR #114517)
    via llvm-branch-commits 
    llvm-branch-commits at lists.llvm.org
       
    Thu Jun 12 09:11:32 PDT 2025
    
    
  
================
@@ -2952,5 +2952,22 @@ RISCVTTIImpl::enableMemCmpExpansion(bool OptSize, bool IsZeroCmp) const {
     Options.LoadSizes = {4, 2, 1};
     Options.AllowedTailExpansions = {3};
   }
+
+  if (IsZeroCmp && ST->hasVInstructions()) {
+    unsigned RealMinVLen = ST->getRealMinVLen();
+    // Support Fractional LMULs if the lengths are larger than XLen.
+    // TODO: Support non-power-of-2 types.
----------------
hiraditya wrote:
Should we create a github ticket for this?
https://github.com/llvm/llvm-project/pull/114517
    
    
More information about the llvm-branch-commits
mailing list