HomePhabricator

[WebAssembly] CFG sort support for exception handling

Authored by aheejin on Aug 7 2018, 1:19 PM.

Description

[WebAssembly] CFG sort support for exception handling

Summary:
This patch extends CFGSort pass to support exception handling. Once it
places a loop header, it does not place blocks that are not dominated by
the loop header until all the loop blocks are sorted. This patch extends
the same algorithm to exception 'catch' part, using the information
calculated by WebAssemblyExceptionInfo class.

Reviewers: dschuff, sunfish

Subscribers: sbc100, jgravelle-google, llvm-commits

Differential Revision: https://reviews.llvm.org/D46500

llvm-svn: 339172

Details

Committed
aheejinAug 7 2018, 1:19 PM
Differential Revision
D46500: [WebAssembly] CFG sort support for exception handling
Parents
rGf7a8fb2dee2d: [InstSimplify] fold fsub+fsub with common operand
Branches
Unknown
Tags
Unknown