[PATCH] D46500: [WebAssembly] CFG sort support for exception handling
Heejin Ahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat May 5 21:45:19 PDT 2018
aheejin created this revision.
aheejin added reviewers: dschuff, sunfish.
Herald added subscribers: llvm-commits, jgravelle-google, sbc100.
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.
Repository:
rL LLVM
https://reviews.llvm.org/D46500
Files:
include/llvm/CodeGen/MachineLoopInfo.h
lib/Target/WebAssembly/WebAssemblyCFGSort.cpp
lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
lib/Target/WebAssembly/WebAssemblyUtilities.cpp
lib/Target/WebAssembly/WebAssemblyUtilities.h
test/CodeGen/WebAssembly/cfg-stackify-eh.ll
test/CodeGen/WebAssembly/exception.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46500.145394.patch
Type: text/x-patch
Size: 29969 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180506/be5809f7/attachment.bin>
More information about the llvm-commits
mailing list