[all-commits] [llvm/llvm-project] 95b631: [SLP]Fix getSpillCost functions.

Alexey Bataev via All-commits all-commits at lists.llvm.org
Fri May 26 12:22:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 95b631181a610dc8c94a699975a6e6b43709e5a2
      https://github.com/llvm/llvm-project/commit/95b631181a610dc8c94a699975a6e6b43709e5a2
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2023-05-26 (Fri, 26 May 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/AArch64/landing_pad.ll

  Log Message:
  -----------
  [SLP]Fix getSpillCost functions.

There are several issues in the current implementation. The instructions
are not properly ordered, if they are placed in different basic blocks,
need to reverse the order of blocks. Also, need to exclude
non-vectorizable nodes and check for CallBase, not CallInst, otherwise
invoke calls are not handled correctly.




More information about the All-commits mailing list