aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ReachingDefAnalysis.cpp
diff options
context:
space:
mode:
authorFedor Sergeev <fedor.sergeev@azul.com>2020-01-17 15:38:54 +0300
committerFedor Sergeev <fedor.sergeev@azul.com>2020-01-17 15:40:02 +0300
commitcc7cb05e9d7f3c6eac48055069c83b1426e3c6b7 (patch)
treeca6a031d103492ce4ce43dbd9c136abb3612ccf7 /llvm/lib/CodeGen/ReachingDefAnalysis.cpp
parent9835cf159014f40e8ea655d0bb3a341ef7ec34f7 (diff)
downloadllvm-cc7cb05e9d7f3c6eac48055069c83b1426e3c6b7.zip
llvm-cc7cb05e9d7f3c6eac48055069c83b1426e3c6b7.tar.gz
llvm-cc7cb05e9d7f3c6eac48055069c83b1426e3c6b7.tar.bz2
[BasicBlock] fix looping in getPostdominatingDeoptimizeCall
Blindly following unique-successors chain appeared to be a bad idea. In a degenerate case when block jumps to itself that goes into endless loop. Discovered this problem when playing with additional changes, managed to reproduce it on existing LoopPredication code. Fix by checking a "visited" set while iterating through unique successors. Reviewed By: skatkov Tags: #llvm Differential Revision: https://reviews.llvm.org/D72908
Diffstat (limited to 'llvm/lib/CodeGen/ReachingDefAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions