diff options
| author | Michael Kruse <llvm-project@meinersbur.de> | 2022-05-19 16:52:58 -0500 |
|---|---|---|
| committer | Michael Kruse <llvm-project@meinersbur.de> | 2022-05-20 15:19:52 -0500 |
| commit | acec07005e038ab2891f235ae60ba2f0236bb952 (patch) | |
| tree | 8b137d3724ad400bc1e74c9659dae63f84f5bf8d /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | ade5b55af5747413dab8dd57896532fdee19cdf5 (diff) | |
[OpenMP] Fix partial unrolling off-by-one.
Even though the comment description is ".unroll_inner.iv < NumIterations", the code emitted a BO_LE ('<=') operator for the inner loop that is to be unrolled. This lead to one additional copy of the body code in a partially unrolled. It only manifests when the unrolled loop is consumed by another loop-associated construct. Fix by using the BO_LT operator instead.
The condition for the outer loop and the corresponding code for tiling correctly used BO_LT already.
Fixes #55236
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
