[all-commits] [llvm/llvm-project] cbcdd7: [SLP]Do not swap not counted extractelements.

Alexey Bataev via All-commits all-commits at lists.llvm.org
Tue Feb 21 13:26:53 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cbcdd747e85b8d33b821d94d8114b971f31fd0d2
      https://github.com/llvm/llvm-project/commit/cbcdd747e85b8d33b821d94d8114b971f31fd0d2
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2023-02-21 (Tue, 21 Feb 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/AArch64/extractelements-to-shuffle.ll

  Log Message:
  -----------
  [SLP]Do not swap not counted extractelements.

No need to swap extractelements, which were not excluded from the list
during cost analysis. It leads to incorrect cost calculation and make
vector code more profitable than it is actually is.




More information about the All-commits mailing list