[PATCH] D58591: [WebAssembly] Remove unnecessary instructions after TRY marker placement

Heejin Ahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 24 01:51:06 PST 2019


aheejin created this revision.
aheejin added a reviewer: dschuff.
Herald added subscribers: llvm-commits, sunfish, jgravelle-google, sbc100.
Herald added a project: LLVM.

This removes unnecessary instructions after TRY marker placement. There
are two cases:

- `end`/`end_block` can be removed if they overlap with `try`/`end_try` and they have the same return types.
- `br` right before `catch` that branches to after `end_try` can be deleted.


Repository:
  rL LLVM

https://reviews.llvm.org/D58591

Files:
  lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
  test/CodeGen/WebAssembly/cfg-stackify-eh.ll
  test/CodeGen/WebAssembly/exception.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58591.188075.patch
Type: text/x-patch
Size: 13549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190224/bfb83f38/attachment.bin>


More information about the llvm-commits mailing list