[all-commits] [llvm/llvm-project] ef4330: [X86] truncateVectorWithPACK - handle vector trunc...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sat Aug 5 08:01:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ef4330f4f3cc37abd624242c821638d90f6ef746
      https://github.com/llvm/llvm-project/commit/ef4330f4f3cc37abd624242c821638d90f6ef746
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-08-05 (Sat, 05 Aug 2023)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/fpclamptosat_vec.ll
    M llvm/test/CodeGen/X86/masked_store_trunc_ssat.ll
    M llvm/test/CodeGen/X86/masked_store_trunc_usat.ll
    M llvm/test/CodeGen/X86/vector-trunc-packus.ll
    M llvm/test/CodeGen/X86/vector-trunc-ssat.ll
    M llvm/test/CodeGen/X86/vector-trunc-usat.ll

  Log Message:
  -----------
  [X86] truncateVectorWithPACK - handle vector truncations to sub-64-bit vector widths

Extend the existing 128-bit -> 64-bit truncation handling by widening/narrowing the src/dst vectors and use the lower half operand/result for PACKSS/PACKUS instructions.


  Commit: ce2ec065165b9c675394e182717b5dec8f3b0535
      https://github.com/llvm/llvm-project/commit/ce2ec065165b9c675394e182717b5dec8f3b0535
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-08-05 (Sat, 05 Aug 2023)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    A llvm/test/CodeGen/X86/pr64439.ll

  Log Message:
  -----------
  [X86] Only fold broadcast with extract_vector_elt/scalar_to_vector if the scalar type matches the vector element type

Avoid handling implicit extension/truncation with scalar<->vector transfers

Fixes #64439


Compare: https://github.com/llvm/llvm-project/compare/0efdf3baf58c...ce2ec065165b


More information about the All-commits mailing list