[all-commits] [llvm/llvm-project] 6d677c: [SLP] Unify GEP cost modeling for load, store and ...

Valery Dmitriev via All-commits all-commits at lists.llvm.org
Thu Jan 5 10:11:55 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6d677c0b3d917fd634b5ac07695518c9d8743b14
      https://github.com/llvm/llvm-project/commit/6d677c0b3d917fd634b5ac07695518c9d8743b14
  Author: Valery N Dmitriev <valery.n.dmitriev at intel.com>
  Date:   2023-01-05 (Thu, 05 Jan 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/X86/geps-non-pow-2.ll
    M llvm/test/Transforms/SLPVectorizer/X86/remark_gather-load-redux-cost.ll
    M llvm/test/Transforms/SLPVectorizer/X86/scatter-vectorize-reused-pointer.ll

  Log Message:
  -----------
  [SLP] Unify GEP cost modeling for load, store and GEP nodes.

Make a separate routine for GEPs cost calculation and make
the approach uniform across load, store and GEP tree nodes.
Additional issue fixed is GEP cost savings were applied twice
for ScatterVectorize nodes (aka gather load) making them look
unrealistically profitable for vectorization.

Differential Revision: https://reviews.llvm.org/D140789




More information about the All-commits mailing list