[all-commits] [llvm/llvm-project] d7f377: [X86] combineEXTRACT_SUBVECTOR - fold extract_subv...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Dec 16 10:37:35 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d7f3775977875a8208e494bab822b9cdef991822
      https://github.com/llvm/llvm-project/commit/d7f3775977875a8208e494bab822b9cdef991822
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-12-16 (Mon, 16 Dec 2024)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/oddshuffles.ll
    M llvm/test/CodeGen/X86/vector-interleaved-load-i32-stride-7.ll
    M llvm/test/CodeGen/X86/vector-interleaved-load-i32-stride-8.ll
    M llvm/test/CodeGen/X86/vector-interleaved-store-i32-stride-6.ll
    M llvm/test/CodeGen/X86/vector-interleaved-store-i32-stride-8.ll

  Log Message:
  -----------
  [X86] combineEXTRACT_SUBVECTOR - fold extract_subvector(pshufd(v,i)) -> pshufd(extract_subvector(v,i))

Attempt to avoid unnecessary wide PSHUFD or VPERMILIPS/D instructions by pre-extracting the subvector source if thats its only use.


  Commit: 89e530a27c04f1c45a8c9b5cb97099b4b9d2b048
      https://github.com/llvm/llvm-project/commit/89e530a27c04f1c45a8c9b5cb97099b4b9d2b048
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-12-16 (Mon, 16 Dec 2024)

  Changed paths:
    M llvm/test/Analysis/CostModel/X86/shuffle-non-pow-2-codesize.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-non-pow-2-latency.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-non-pow-2-sizelatency.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-non-pow-2.ll

  Log Message:
  -----------
  [CostModel[X86] Update shuffle non-pow-2 tests to not analyse shuffle(undef,undef)

Avoid shuffle patterns that can be folded away.


Compare: https://github.com/llvm/llvm-project/compare/7bf3137c39a6...89e530a27c04

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