aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTestJava.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2022-05-21 15:39:08 +0200
committerNikita Popov <nikita.ppv@gmail.com>2022-05-21 15:48:14 +0200
commitc8b675eaa1de1d4edebd0292ca6de3180c687127 (patch)
treefe8d4841d50aa520c6b1296e12d35e9cf3985653 /clang/unittests/Format/FormatTestJava.cpp
parent295d032762ad284068c72cc1904680a4db5e80d3 (diff)
downloadllvm-c8b675eaa1de1d4edebd0292ca6de3180c687127.zip
llvm-c8b675eaa1de1d4edebd0292ca6de3180c687127.tar.gz
llvm-c8b675eaa1de1d4edebd0292ca6de3180c687127.tar.bz2
[SCEV] Use umin_seq for BECount of multi-exit loops
When computing the BECount for multi-exit loops, we need to combine individual exit counts using umin_seq rather than umin. This is because an earlier exit may exit on the first iteration, in which case later exit expressions will not be evaluated and could be poisonous. We cannot propagate potential poison values from later exits. In particular, this avoids the introduction of "branch on poison" UB when optimizing multi-exit loops. Differential Revision: https://reviews.llvm.org/D124910
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
0 files changed, 0 insertions, 0 deletions