[all-commits] [llvm/llvm-project] f2a43f: [WebAssembly] Use llvm utility functions in EH/SjLj
Heejin Ahn via All-commits
all-commits at lists.llvm.org
Tue Jan 4 17:48:42 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f2a43f06dd0cedc256be23b9b2b38108f7bcfc74
https://github.com/llvm/llvm-project/commit/f2a43f06dd0cedc256be23b9b2b38108f7bcfc74
Author: Heejin Ahn <aheejin at gmail.com>
Date: 2022-01-04 (Tue, 04 Jan 2022)
Changed paths:
M llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
M llvm/test/CodeGen/WebAssembly/lower-wasm-sjlj.ll
Log Message:
-----------
[WebAssembly] Use llvm utility functions in EH/SjLj
This uses `changeToCall` and `changeToInvokeAndSplitBasicBlock` from
`lib/Transforms/Utils`, replacing the custom logic. One difference of
those functions from our previous logic is they delete the original
`CallInst`/`InvokeInst`, which makes them tricky to use while iterating
through instructions/BBs. So this CL gathers the candidate calls first
and run them through `changeToInvokeAndSplitBasicBlock` later.
Also this renames some variables.
Reviewed By: dschuff
Differential Revision: https://reviews.llvm.org/D116620
More information about the All-commits
mailing list