commit | 1ae06332173cd29fa0682455ddbef8f896242978 | [log] [tgz] |
---|---|---|
author | Alexey Bataev <a.bataev@outlook.com> | Tue Jun 29 13:56:00 2021 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Dec 02 14:18:41 2021 -0800 |
tree | 8b7f589875df3dc38fb74d34022ce6dda43cf5e8 | |
parent | ca377f4a420676749fd438a6efbca91bdc971a7a [diff] |
[OPENMP]Fix PR50733: unexpected final value of list-item in linear clause in loop construct. Currently the last value of linear is calculated as var = init + num_iters * step. Replaced it with var = var_priv, i.e. original variable gets the value of the last private copy. Differential Revision: https://reviews.llvm.org/D105151 GitOrigin-RevId: 8a2c7a2410994ff277e8761c3b33d1b225be704c