[all-commits] [llvm/llvm-project] 1324ea: [WebAssembly] Fold any/alltrue SIMD boolean reduct...

Derek Schuff via All-commits all-commits at lists.llvm.org
Mon Mar 9 15:54:46 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1324ea1b229919310f54c032f7b30c770bce8a3c
      https://github.com/llvm/llvm-project/commit/1324ea1b229919310f54c032f7b30c770bce8a3c
  Author: Derek Schuff <dschuff at chromium.org>
  Date:   2026-03-09 (Mon, 09 Mar 2026)

  Changed paths:
    M llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
    M llvm/test/CodeGen/WebAssembly/simd-memcmp.ll
    M llvm/test/CodeGen/WebAssembly/simd-reductions.ll

  Log Message:
  -----------
  [WebAssembly] Fold any/alltrue SIMD boolean reductions with eqz (#184704)

Existing ISel patterns match setne/seteq following SIMD boolean reductions
any_true and all_true, and drop the ones that are redundant (because the
reductions always return 1 or 0). This adds patterns to also produce eqz
instructions instead of a comparison with a const.



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