================ @@ -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 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits