[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
       
    Thu Jun 12 02:55:17 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() && ST->enableUnalignedVectorMem()) {
----------------
wangpc-pp wrote:
Yeah, we don't need this check at all. I just forgot to remove this part. :D
https://github.com/llvm/llvm-project/pull/114517
    
    
More information about the llvm-branch-commits
mailing list