diff options
author | Heejin Ahn <aheejin@gmail.com> | 2024-03-05 19:54:41 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 19:54:41 -0800 |
commit | 403b9cf1bb29d550c419ac5ecd2f764bf5cfa3c0 (patch) | |
tree | 277175430f42f8f9c9cd148dcc7221b54ab42798 /llvm/lib/CodeGen/ReachingDefAnalysis.cpp | |
parent | ae709c192953be2af61f47e91a3ec9f8d5ffb027 (diff) | |
download | llvm-403b9cf1bb29d550c419ac5ecd2f764bf5cfa3c0.zip llvm-403b9cf1bb29d550c419ac5ecd2f764bf5cfa3c0.tar.gz llvm-403b9cf1bb29d550c419ac5ecd2f764bf5cfa3c0.tar.bz2 |
[WebAssembly] Use RefTypeMem2Local instead of Mem2Reg (#83196)
When reference-types feature is enabled, forcing mem2reg unconditionally
even in `-O0` has some problems described in #81575. This uses
RefTypeMem2Local pass added in #81965 instead. This also removes
`IsForced` parameter added in
https://github.com/llvm/llvm-project/commit/890146b19206827bc48ee1ae1dc1534ff2ff18d7
given that we don't need it anymore.
This may still hurt debug info related to reference type variables a
little during the backend transformation given that they are not stored
in memory anymore, but reference type variables are presumably rare and
it would be still a lot less damage than forcing mem2reg on the whole
program. Also this fixes the EH problem described in #81575.
Fixes #81575.
Diffstat (limited to 'llvm/lib/CodeGen/ReachingDefAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions