[llvm] [X86][CostModel] Cost gathers by the instructions CodeGen emits (PR #220565)
Sumukh J Bharadwaj via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 8 06:25:33 PDT 2026
================
@@ -0,0 +1,70 @@
+; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 6
+; Gathers and scatters over pointers that are not in address space 0. On x86,
+; address spaces 270 and 271 hold 32-bit pointers, so a vector of them is half
+; the width of the same number of address-space-0 pointers, needs no split, and
+; is indexed with a dword rather than a qword index.
+
+; RUN: opt < %s -S -mtriple=x86_64-unknown-linux-gnu -passes="print<cost-model>" 2>&1 -disable-output -cost-kind=all -mcpu=skylake-avx512 | FileCheck %s --check-prefix=SKX
----------------
amd-subharad wrote:
Added, and you are right that the claim was too narrow. The commit message no longer limits the effect to direct pointers
https://github.com/llvm/llvm-project/pull/220565
More information about the llvm-commits
mailing list