[all-commits] [llvm/llvm-project] 1eecf0: [X86] `LowerBUILD_VECTOR()`: fix all-UNDEF detection

Roman Lebedev via All-commits all-commits at lists.llvm.org
Fri Jan 20 09:22:34 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1eecf03919cdded5853b4aace67650e8c03a271b
      https://github.com/llvm/llvm-project/commit/1eecf03919cdded5853b4aace67650e8c03a271b
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2023-01-20 (Fri, 20 Jan 2023)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/build-vector-128.ll

  Log Message:
  -----------
  [X86] `LowerBUILD_VECTOR()`: fix all-UNDEF detection

The original check was trying to avoid checking UndefMask itself,
and deduce it via simpler means, but checking `NonZeroMask`
does not, e.g., check `ZeroMask`.

Fixes https://github.com/llvm/llvm-project/issues/60168




More information about the All-commits mailing list