[all-commits] [llvm/llvm-project] b29ec2: [X86] MatchVectorAllZeroTest - fix bug when splitt...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Apr 6 02:55:55 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b29ec28fd67fb72b007d9d763d4c054e5fd9cd63
      https://github.com/llvm/llvm-project/commit/b29ec28fd67fb72b007d9d763d4c054e5fd9cd63
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-04-06 (Thu, 06 Apr 2023)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/setcc-wide-types.ll

  Log Message:
  -----------
  [X86] MatchVectorAllZeroTest - fix bug when splitting vectors of large elements

DAG::SplitVector only works with vectors with even numbers of elements, when splitting vectors with large (illegal) element widths, we are likely to split down to <1 x iXXX>.

In such cases, pre-bitcast to a <X x i64> type to ensure splitting will always succeed.

Thanks to @alexfh for identifying this.




More information about the All-commits mailing list