[all-commits] [llvm/llvm-project] ff03f2: [WebAssembly] remove instruction after builtin tra...

Congcong Cai via All-commits all-commits at lists.llvm.org
Sat Apr 27 07:12:09 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ff03f23be8bc6df701efd9e1093779fbcf382d87
      https://github.com/llvm/llvm-project/commit/ff03f23be8bc6df701efd9e1093779fbcf382d87
  Author: Congcong Cai <congcongcai0907 at 163.com>
  Date:   2024-04-27 (Sat, 27 Apr 2024)

  Changed paths:
    M llvm/lib/Target/WebAssembly/CMakeLists.txt
    M llvm/lib/Target/WebAssembly/WebAssembly.h
    A llvm/lib/Target/WebAssembly/WebAssemblyCleanCodeAfterTrap.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
    M llvm/test/CodeGen/WebAssembly/unreachable.ll
    M llvm/test/MC/WebAssembly/global-ctor-dtor.ll

  Log Message:
  -----------
  [WebAssembly] remove instruction after builtin trap (#90207)

`llvm.trap` will be convert as `unreachable` which is terminator.
Instruction after terminator will cause validation failed.
This PR introduces a pass to clean instruction after terminator.
Fixes: #68770.



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