[clang] [AArch64] Enable vscale_range with +sme (PR #124466)

David Green via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 28 10:18:59 PST 2025


================
@@ -708,7 +708,7 @@ AArch64TargetInfo::getVScaleRange(const LangOptions &LangOpts) const {
     return std::pair<unsigned, unsigned>(
         LangOpts.VScaleMin ? LangOpts.VScaleMin : 1, LangOpts.VScaleMax);
 
-  if (hasFeature("sve"))
+  if (hasFeature("sve") || hasFeature("sme"))
----------------
davemgreen wrote:

I think the default range should still be the same - somewhere between 1 and 16. SME doesn't increase that even if they VL and SVL are different.

(Currently if we have +sve+sme we will set the vscale_range to (1,16) already, so hopefully that part is already OK. In either case this adds the simple case, it doesn't alter the more complicated part :) )

https://github.com/llvm/llvm-project/pull/124466


More information about the cfe-commits mailing list