summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
diff options
context:
space:
mode:
authorValentin Churavy <v.churavy@gmail.com>2019-12-14 10:33:30 -0500
committerValentin Churavy <v.churavy@gmail.com>2019-12-16 04:23:32 -0500
commit5c29e8c65fe372b0239f32b38a0299d9abef3167 (patch)
tree934ab5083e1d5ecfd74e8d9f5d4359c921c1d3d3 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
parent049f9672d8566f0d0a115f11e2a53018ea502b10 (diff)
downloadbcm5719-llvm-5c29e8c65fe372b0239f32b38a0299d9abef3167.tar.gz
bcm5719-llvm-5c29e8c65fe372b0239f32b38a0299d9abef3167.zip
[CodegenPrepare] Guard against degenerate branches
Summary: Guard against a potential crash observed in https://github.com/JuliaLang/julia/issues/32994#issuecomment-524249628 If two branches are collapsed we can encounter a degenerate conditional branch `TBB==FBB`. The subsequent code assumes that they differ, so we exit out early. Reviewers: ributzka, spatel Subscribers: loladiro, dexonsmith, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D66657
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud