aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
diff options
context:
space:
mode:
authorchenpeihao3 <chenpeihao3@huawei.com>2023-08-04 09:45:12 +0800
committerZhongyunde <zhongyunde@huawei.com>2023-08-04 17:02:47 +0800
commit892305adb116552caf826557f9786e5773e27e37 (patch)
tree7779e13e509cad12d24db262b0b016d8dfe5d39d /clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
parentaf91092c449d6d4bcf60b0cd233c48cd8a41e0e1 (diff)
downloadllvm-892305adb116552caf826557f9786e5773e27e37.zip
llvm-892305adb116552caf826557f9786e5773e27e37.tar.gz
llvm-892305adb116552caf826557f9786e5773e27e37.tar.bz2
[BOLT] fix the endless loop of --iterative-guess
Solve the endless loop caused by iterative guess. The main function of this option is guessEdgeByIterativeApproach, where the do while loop involves guessPredEdgeCounts and guessSuccessEdgeCounts. In some scenarios, the do while loop will fall into an endless loop. The reason is that although the GuessedPredEdgeCounts function has guessed the pred-edges counts, GuessedArcs does not insert the corresponding BB block, resulting in the changed variable always being true. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D154922
Diffstat (limited to 'clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp')
0 files changed, 0 insertions, 0 deletions