[all-commits] [llvm/llvm-project] 5bbfbd: [flang][OpenMP] Fix parallel do with integer*1 var
Leandro Lupori via All-commits
all-commits at lists.llvm.org
Wed Aug 2 06:17:21 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5bbfbd9a1cc5fbde44ac7d6a8187dba0cff298d6
https://github.com/llvm/llvm-project/commit/5bbfbd9a1cc5fbde44ac7d6a8187dba0cff298d6
Author: Leandro Lupori <leandro.lupori at linaro.org>
Date: 2023-08-02 (Wed, 02 Aug 2023)
Changed paths:
M flang/lib/Lower/OpenMP.cpp
M flang/test/Lower/OpenMP/wsloop-variable.f90
Log Message:
-----------
[flang][OpenMP] Fix parallel do with integer*1 var
Temporaries created to store worksharing loop index values were
using different types than that of the original index variables.
This caused invalid IR to be produced when an index variable was
used in binary operations which expected its original type.
Fix this by creating temporaries with the types of their original
variables and converting the loop values, that continue to use
the types that OpenMP runtime expects, to them.
Fixes https://github.com/llvm/llvm-project/issues/60870
Reviewed By: kiranchandramohan
Differential Revision: https://reviews.llvm.org/D156803
More information about the All-commits
mailing list