diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2021-08-13 15:35:01 +0300 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2021-08-13 15:45:03 +0300 |
commit | 2702fb11484a6f5d99c712a0e92c221288955c56 (patch) | |
tree | 9e2cbd987a53d3b362bf50ce9ace68ffe3e8f188 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | cb7c01889ec21accc12b2c19a395b521e3b959a3 (diff) | |
download | llvm-2702fb11484a6f5d99c712a0e92c221288955c56.zip llvm-2702fb11484a6f5d99c712a0e92c221288955c56.tar.gz llvm-2702fb11484a6f5d99c712a0e92c221288955c56.tar.bz2 |
[SimplifyCFG] Restart if `removeUndefIntroducingPredecessor()` made changes
It might changed the condition of a branch into a constant,
so we should restart and constant-fold terminator,
instead of continuing with the tautological "conditional" branch.
This fixes the issue reported at https://reviews.llvm.org/rGf30a7dff8a5b32919951dcbf92e4a9d56c4679ff
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions