diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2020-08-19 00:59:07 +0300 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2020-08-19 01:00:42 +0300 |
commit | 78bd4231bfbf695cc45b651b6c994f047b287bad (patch) | |
tree | a837424d90beafbb65b8b9fa48d8e3374a9d98e4 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | ed3534452486728aa2981537ac8d8c5c3e1e6b0a (diff) | |
download | llvm-78bd4231bfbf695cc45b651b6c994f047b287bad.zip llvm-78bd4231bfbf695cc45b651b6c994f047b287bad.tar.gz llvm-78bd4231bfbf695cc45b651b6c994f047b287bad.tar.bz2 |
[InstCombine] PHI-aware aggregate reconstruction: properly handle duplicate predecessors
While it may seem like we can just "deduplicate" the case where
some basic block happens to be a predecessor more than once,
which happens for e.g. switches, that is not correct thing to do.
We must actually add a PHI operand for each predecessor.
This was initially reported to me by David Major
as a clang crash during gecko build for android.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions