This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Remove more unnecessary brs in CFGStackify
ClosedPublic

Authored by aheejin on Jan 4 2021, 3:52 PM.

Details

Summary

After placing markers, we removed some unnecessary branches, but it only
handled the simplest case. This makes more unnecessary branches to be
removed.

Diff Detail

Event Timeline

aheejin created this revision.Jan 4 2021, 3:52 PM
aheejin requested review of this revision.Jan 4 2021, 3:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 4 2021, 3:52 PM
tlively accepted this revision.Jan 7 2021, 10:57 AM
tlively added inline comments.
llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
662

Should "ehd_try" be "end_try"?

This revision is now accepted and ready to land.Jan 7 2021, 10:57 AM
dschuff accepted this revision.Jan 7 2021, 1:15 PM
dschuff added inline comments.
llvm/test/CodeGen/WebAssembly/cfg-stackify-eh.ll
1019

could add a CHECK-LABEL: test18 here

aheejin marked 2 inline comments as done.Jan 9 2021, 10:48 PM
aheejin updated this revision to Diff 315654.Jan 9 2021, 10:53 PM

Address comments

This revision was automatically updated to reflect the committed changes.