diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2021-02-27 09:09:03 -0500 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2021-02-27 09:10:32 -0500 |
| commit | 356cdabd3a9e0ff919ea2c1a35c8706ecb915297 (patch) | |
| tree | c419cf5da40087244880ab48826d2d0cfe74932d /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 42e025f9deab39717738e98309370c6df851b1c6 (diff) | |
[SimplifyCFG] avoid illegal phi with both poison and undef
In the example based on:
https://llvm.org/PR49218
...we are crashing because poison is a subclass of undef, so we merge blocks and create:
PHI node has multiple entries for the same basic block with different incoming values!
%k3 = phi i64 [ poison, %entry ], [ %k3, %g ], [ undef, %entry ]
If both poison and undef values are incoming, we soften the poison values to undef.
Differential Revision: https://reviews.llvm.org/D97495
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
