[all-commits] [llvm/llvm-project] b16e69: [SLP]Try to keep operand of external casts as scal...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Tue Oct 1 10:36:04 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b16e69494811c5908c1ab2a8cf56b70b5834698c
      https://github.com/llvm/llvm-project/commit/b16e69494811c5908c1ab2a8cf56b70b5834698c
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2024-10-01 (Tue, 01 Oct 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/RISCV/complex-loads.ll
    M llvm/test/Transforms/SLPVectorizer/X86/cast-operand-extracted.ll
    M llvm/test/Transforms/SLPVectorizer/insertelement-uses-vectorized-index.ll

  Log Message:
  -----------
  [SLP]Try to keep operand of external casts as scalars, if profitable

If the cost of original scalar instruction + cast is better than the
extractelement from the vector cast instruction, better to keep original
scalar instructions, where possible

Reviewers: RKSimon

Reviewed By: RKSimon

Pull Request: https://github.com/llvm/llvm-project/pull/110537



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list