[flang-commits] [flang] 9cf52fe - [flang][OpenMP][NFC] test the current private dealloc runtime calls (#124017)

via flang-commits flang-commits at lists.llvm.org
Fri Jan 24 06:48:50 PST 2025


Author: Tom Eccles
Date: 2025-01-24T14:48:47Z
New Revision: 9cf52fe1f94fdcd8e27c76f7d33a80eeb2075833

URL: https://github.com/llvm/llvm-project/commit/9cf52fe1f94fdcd8e27c76f7d33a80eeb2075833
DIFF: https://github.com/llvm/llvm-project/commit/9cf52fe1f94fdcd8e27c76f7d33a80eeb2075833.diff

LOG: [flang][OpenMP][NFC] test the current private dealloc runtime calls (#124017)

It looks like in most cases we still don't make calls to deallocate
allocatable members of derived types which have been privatized.

This is just intended to add a test for the one case where we do, to
make sure this doesn't regress with my upcoming changes.

Added: 
    

Modified: 
    flang/test/Lower/OpenMP/derived-type-allocatable.f90

Removed: 
    


################################################################################
diff  --git a/flang/test/Lower/OpenMP/derived-type-allocatable.f90 b/flang/test/Lower/OpenMP/derived-type-allocatable.f90
index 2dc4e20f27af21..1d6e22212eedd0 100644
--- a/flang/test/Lower/OpenMP/derived-type-allocatable.f90
+++ b/flang/test/Lower/OpenMP/derived-type-allocatable.f90
@@ -24,6 +24,9 @@ module m1
 !CHECK-LABEL: omp.private {type = private} @_QMm1Ftest_array_of_allocs
 !CHECK:       fir.call @_FortranAInitializeClone
 !CHECK-NEXT:  omp.yield
+!CHECK:       } dealloc {
+!CHECK:       fir.call @_FortranAAllocatableDeallocate
+!CHECK:       omp.yield
 
 !CHECK-LABEL: omp.private {type = firstprivate} @_QMm1Ftest_array
 !CHECK-NOT:   fir.call @_FortranAInitializeClone


        


More information about the flang-commits mailing list