[all-commits] [llvm/llvm-project] 943fda: [X86] matchTruncateWithPACK - canonically prefer v...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Aug 8 02:10:15 PDT 2023


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

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/bitcast-and-setcc-256.ll
    M llvm/test/CodeGen/X86/bitcast-setcc-256.ll
    M llvm/test/CodeGen/X86/bitcast-vector-bool.ll
    M llvm/test/CodeGen/X86/combine-srl.ll
    M llvm/test/CodeGen/X86/icmp-abs-C-vec.ll
    M llvm/test/CodeGen/X86/ispow2.ll
    M llvm/test/CodeGen/X86/masked_expandload.ll
    M llvm/test/CodeGen/X86/masked_load.ll
    M llvm/test/CodeGen/X86/masked_store.ll
    M llvm/test/CodeGen/X86/movmsk-cmp.ll
    M llvm/test/CodeGen/X86/packss.ll
    M llvm/test/CodeGen/X86/vector-compare-all_of.ll
    M llvm/test/CodeGen/X86/vector-compare-any_of.ll
    M llvm/test/CodeGen/X86/vector-compare-results.ll
    M llvm/test/CodeGen/X86/vector-reduce-or-bool.ll
    M llvm/test/CodeGen/X86/vector-reduce-xor-bool.ll

  Log Message:
  -----------
  [X86] matchTruncateWithPACK - canonically prefer v4i64 -> v4i32 shuffle vs truncation

Pulled out of LowerTruncateVecPackWithSignBits - prefer shuffles unless we can cheaply split the vector. ComputeNumSignBits struggles with vXi64 through bitcasts, so we're usually better off with shuffles.


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

  Changed paths:
    M llvm/unittests/FileCheck/FileCheckTest.cpp

  Log Message:
  -----------
  [FileCheck] Fix MSVC 'argument': truncation from 'int' to 'bool' warning.

Ensure expectOperationValueResult performs the is_integral_v as constexpr to prevent MSVC getting confused between the mixture of integer / string constructors in the if-else.

Warning introduced in D150880


Compare: https://github.com/llvm/llvm-project/compare/7899d2aa6663...5bd8f481c161


More information about the All-commits mailing list