]> granicus.if.org Git - llvm/commit
[WebAssembly] Fix unwind mismatch stat computation
authorHeejin Ahn <aheejin@gmail.com>
Mon, 7 Oct 2019 22:19:40 +0000 (22:19 +0000)
committerHeejin Ahn <aheejin@gmail.com>
Mon, 7 Oct 2019 22:19:40 +0000 (22:19 +0000)
commit42d5f66fabc3766d45b0896f965eb04e29d42a5e
tree8ea43d7d400d19ec198a0e1bfbda40bf3bb3f719
parentef83d68cd39c2bab1fc4a5518c24cd7441b818ae
[WebAssembly] Fix unwind mismatch stat computation

Summary:
There was a bug when computing the number of unwind destination
mismatches in CFGStackify. When there are many mismatched calls that
share the same (original) destination BB, they have to be counted
separately.

This also fixes a typo and runs `fixUnwindMismatches` only when the wasm
exception handling is enabled. This is to prevent unnecessary
computations and does not change behavior.

Reviewers: dschuff

Subscribers: sbc100, jgravelle-google, hiraditya, sunfish, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373975 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
test/CodeGen/WebAssembly/cfg-stackify-eh.ll