summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2019-05-08 09:09:54 +0000
committerFlorian Hahn <flo@fhahn.com>2019-05-08 09:09:54 +0000
commit3c696b3e7c21815662247e2af0346a596a4d0668 (patch)
treeba572c4b5a00edd620e0fae585401e4bf9769cf6 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
parent4c32d4fd9f07af76eb96e2e91da1a3df983bf9e7 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud