[all-commits] [llvm/llvm-project] c8472d: [X86][AVX] Prefer vinsertf128 to vperm2f128 on AVX...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Jul 26 03:12:25 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c8472db0a88701e8c1b183d6568028fefc3406c0
      https://github.com/llvm/llvm-project/commit/c8472db0a88701e8c1b183d6568028fefc3406c0
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-07-26 (Mon, 26 Jul 2021)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/var-permute-128.ll
    M llvm/test/CodeGen/X86/vector-interleave.ll
    M llvm/test/CodeGen/X86/vector-shuffle-256-v8.ll
    M llvm/test/CodeGen/X86/x86-interleaved-access.ll

  Log Message:
  -----------
  [X86][AVX] Prefer vinsertf128 to vperm2f128 on AVX1 targets

Splatting the lower xmm with vinsertf128 is at least as quick as vperm2f128, and a lot faster on some AMD targets.

First step towards PR50053




More information about the All-commits mailing list