diff options
author | Florian Hahn <flo@fhahn.com> | 2019-05-08 09:09:54 +0000 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2019-05-08 09:09:54 +0000 |
commit | 3c696b3e7c21815662247e2af0346a596a4d0668 (patch) | |
tree | ba572c4b5a00edd620e0fae585401e4bf9769cf6 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | 4c32d4fd9f07af76eb96e2e91da1a3df983bf9e7 (diff) | |
download | bcm5719-llvm-3c696b3e7c21815662247e2af0346a596a4d0668.tar.gz bcm5719-llvm-3c696b3e7c21815662247e2af0346a596a4d0668.zip |
[SCCP] Fix crash when trying to constant-fold terminators multiple times.
If we fold a branch/switch to an unconditional branch to another dead block we
replace the branch with unreachable, to avoid attempting to fold the
unconditional branch.
Reviewers: davide, efriedma, mssimpso, jdoerfert
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D61300
llvm-svn: 360232
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
0 files changed, 0 insertions, 0 deletions