[llvm] [WebAssembly] Demote PHIs in catchswitch BB only (PR #81570)

Heejin Ahn via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 12 21:09:38 PST 2024


================
@@ -2,6 +2,7 @@
 ; RUN: opt < %s -win-eh-prepare -demote-catchswitch-only -wasm-eh-prepare -S --mattr=+atomics,+bulk-memory | FileCheck %s
 ; RUN: opt < %s -passes='win-eh-prepare<demote-catchswitch-only>,wasm-eh-prepare' -S | FileCheck %s
 ; RUN: opt < %s -passes='win-eh-prepare<demote-catchswitch-only>,wasm-eh-prepare' -S --mattr=+atomics,+bulk-memory | FileCheck %s
+; RUN: llc < %s -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling -stop-after=wasm-eh-prepare | FileCheck %s
----------------
aheejin wrote:

So far this was missed because we've been only running `opt` tests, with which we run `-win-eh-prepare` with `-demote-catchswitch-only` option manually. This adds a `llc` test that uses `TargetPassConfig.cpp`.

https://github.com/llvm/llvm-project/pull/81570


More information about the llvm-commits mailing list