[all-commits] [llvm/llvm-project] 19a58a: [WebAssembly] Optimize lowering of constant-sized ...

Derek Schuff via All-commits all-commits at lists.llvm.org
Tue Oct 14 15:00:46 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 19a58a520820a0678e767abdf418f101cfd5ca1a
      https://github.com/llvm/llvm-project/commit/19a58a520820a0678e767abdf418f101cfd5ca1a
  Author: Derek Schuff <dschuff at chromium.org>
  Date:   2025-10-14 (Tue, 14 Oct 2025)

  Changed paths:
    M llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
    M llvm/test/CodeGen/WebAssembly/bulk-memory.ll
    M llvm/test/CodeGen/WebAssembly/bulk-memory64.ll

  Log Message:
  -----------
  [WebAssembly] Optimize lowering of constant-sized memcpy and memset (#163294)

We currently emit a check that the size operand isn't zero, to avoid
executing the wasm memory.copy instruction when it would trap.
But this isn't necessary if the operand is a constant.

Fixes #163245



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