diff options
author | Nikita Popov <npopov@redhat.com> | 2025-07-29 09:58:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-29 09:58:57 +0200 |
commit | fc90685354ca36c935ebb0f315bb18592598a83b (patch) | |
tree | 0e25d531c9908eff0eb244abfa84348ea704d1b1 /lldb/unittests/ScriptInterpreter/Python | |
parent | ab1f6ce482487d0f276159a57775c0b3917da6ec (diff) | |
download | llvm-fc90685354ca36c935ebb0f315bb18592598a83b.zip llvm-fc90685354ca36c935ebb0f315bb18592598a83b.tar.gz llvm-fc90685354ca36c935ebb0f315bb18592598a83b.tar.bz2 |
[WebAssemblyLowerEmscriptenEHSjLj] Avoid lifetime of phi (#150932)
After #149310 lifetime intrinsics require an alloca argument, an
invariant that this pass can break.
I've fixed this in two ways:
* First, move static allocas into the entry block. Currently, the way
the pass splits the entry block makes all allocas dynamic, which I
assume was not actually intended. This will avoid unnecessary SSA
reconstruction for allocas as well, and thus avoid the problem.
* If this fails (for dynamic allocas) drop all lifetime intrinsics if
any one of them would require a rewrite during SSA reconstruction.
Fixes https://github.com/llvm/llvm-project/issues/150498.
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions