[all-commits] [llvm/llvm-project] 4448a1: [X86] LowerBUILD_VECTORvXi1 - scalarize the bool m...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue May 26 01:47:23 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4448a1a7c095dc781495d631b73dcdff652436ba
      https://github.com/llvm/llvm-project/commit/4448a1a7c095dc781495d631b73dcdff652436ba
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2026-05-26 (Tue, 26 May 2026)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/avx512-ext.ll
    M llvm/test/CodeGen/X86/avx512-insert-extract.ll
    M llvm/test/CodeGen/X86/avx512-mask-op.ll

  Log Message:
  -----------
  [X86] LowerBUILD_VECTORvXi1 - scalarize the bool masks if we insert a single non-const value (#199523)

Minor generalization of the existing fold for splat bool masks - if only
a single value is used in insertion(s) (as well as any immediate/undefs
values), then fold to a scalar select (val, insert|immediate, immediate)

Yak shaving for #198162



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list