aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2020-06-04 12:07:13 -0400
committerAlexey Bataev <a.bataev@hotmail.com>2020-06-17 08:47:01 -0400
commit08029595ca36067e23d22c2a8732aba0d4afb50a (patch)
tree0eaf7bd04fd988c4700b2a79bdccbf3548e8aa36 /llvm/lib/Support/CommandLine.cpp
parent34ee2549a72c2947fb3f6677fbe8ad97da100011 (diff)
downloadllvm-08029595ca36067e23d22c2a8732aba0d4afb50a.zip
llvm-08029595ca36067e23d22c2a8732aba0d4afb50a.tar.gz
llvm-08029595ca36067e23d22c2a8732aba0d4afb50a.tar.bz2
[OPENMP]Fix overflow during counting the number of iterations.
Summary: The OpenMP loops are normalized and transformed into the loops from 0 to max number of iterations. In some cases, original scheme may lead to overflow during calculation of number of iterations. If it is unknown, if we can end up with overflow or not (the bounds are not constant and we cannot define if there is an overflow), cast original type to the unsigned. Reviewers: jdoerfert Subscribers: yaxunl, guansong, sstefan1, openmp-commits, cfe-commits, caomhin Tags: #clang, #openmp Differential Revision: https://reviews.llvm.org/D81881
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions