aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorMichael Kruse <llvm-project@meinersbur.de>2022-01-31 09:49:44 -0600
committerMichael Kruse <llvm-project@meinersbur.de>2022-01-31 17:28:52 -0600
commit8a9e4f245b66b90839bdf34e91cb0901e3260dad (patch)
treeaff11893213a5ce7d07eaaee834ff3ec8791f5f0 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parentc7f4c333af2bd7b21dfb58df6cea59b30f6576d7 (diff)
downloadllvm-8a9e4f245b66b90839bdf34e91cb0901e3260dad.zip
llvm-8a9e4f245b66b90839bdf34e91cb0901e3260dad.tar.gz
llvm-8a9e4f245b66b90839bdf34e91cb0901e3260dad.tar.bz2
[Clang][OpenMPIRBuilder] Fix off-by-one error when dividing by stepsize.
When the stepsize does not evenly divide the range's end, round-up to ensure that that last multiple of the stepsize before the reaching the upper boud is reached. For instance, the trip count of for (int i = 0; i < 7; i+=5) is two (i=0 and i=5), not (7-0)/5 == 1. Reviewed By: peixin Differential Revision: https://reviews.llvm.org/D118542
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions