[all-commits] [llvm/llvm-project] 9c7aab: [SLP] Use vector types for cmp alt instructions costs

David Green via All-commits all-commits at lists.llvm.org
Wed Jun 28 13:02:44 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9c7aab362a4579d5ce26f4af2564b04720ec23a2
      https://github.com/llvm/llvm-project/commit/9c7aab362a4579d5ce26f4af2564b04720ec23a2
  Author: David Green <david.green at arm.com>
  Date:   2023-06-28 (Wed, 28 Jun 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/AArch64/extracts-from-scalarizable-vector.ll

  Log Message:
  -----------
  [SLP] Use vector types for cmp alt instructions costs

Similar to the other code that costs main/alt instructions, the cmp should be
using the VecTy for the costs, not the ScalarTy.

One of the tests look like it gets worse just because it is not simplified to
0.

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




More information about the All-commits mailing list