[llvm] [AArch64][TTI] Increase cost for masked memory operations requiring splitting (PR #191417)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 10 09:31:12 PDT 2026


================
@@ -9,7 +9,7 @@ target triple = "aarch64-unknown-linux-gnu"
 
 define void @fixed_sve_vls() #0 {
 ; VL256-LABEL: 'fixed_sve_vls'
-; VL256-NEXT:  Cost Model: Found an estimated cost of 16 for instruction: %v256i8 = call <256 x i8> @llvm.masked.load.v256i8.p0(ptr poison, <256 x i1> poison, <256 x i8> poison)
+; VL256-NEXT:  Cost Model: Found an estimated cost of 8 for instruction: %v256i8 = call <256 x i8> @llvm.masked.load.v256i8.p0(ptr poison, <256 x i1> poison, <256 x i8> poison)
----------------
david-arm wrote:

This seems to be decreasing the cost, right?

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


More information about the llvm-commits mailing list