[flang-commits] [flang] [Flang][OpenMP] Use less CHECK-DAGs in a test (PR #90190)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Mon Apr 29 05:08:10 PDT 2024


https://github.com/kiranchandramohan updated https://github.com/llvm/llvm-project/pull/90190

>From 114bd09c9370138d5ff4bb721cb41c0496ec423b Mon Sep 17 00:00:00 2001
From: Kiran Chandramohan <kiran.chandramohan at arm.com>
Date: Fri, 26 Apr 2024 10:07:21 +0000
Subject: [PATCH] [Flang][OpenMP] Use less CHECK-DAGs in a test

This speeds up the test.
---
 .../OpenMP/threadprivate-real-logical-complex-derivedtype.f90    | 1 +
 1 file changed, 1 insertion(+)

diff --git a/flang/test/Lower/OpenMP/threadprivate-real-logical-complex-derivedtype.f90 b/flang/test/Lower/OpenMP/threadprivate-real-logical-complex-derivedtype.f90
index 55f806962a609f..0a249ff101a088 100644
--- a/flang/test/Lower/OpenMP/threadprivate-real-logical-complex-derivedtype.f90
+++ b/flang/test/Lower/OpenMP/threadprivate-real-logical-complex-derivedtype.f90
@@ -21,6 +21,7 @@ module test
 !CHECK-DAG: fir.global @_QMtestEz : !fir.logical<4> {
 
 contains
+!CHECK-LABEL: func.func @_QMtestPsub
   subroutine sub()
 !CHECK-DAG:  %[[T:.*]] = fir.address_of(@_QMtestEt) : !fir.ref<!fir.type<_QMtestTmy_type{t_i:i32,t_arr:!fir.array<5xf32>}>>
 !CHECK-DAG:  %[[T_DECL:.*]]:2 = hlfir.declare %[[T]] {uniq_name = "_QMtestEt"} : (!fir.ref<!fir.type<_QMtestTmy_type{t_i:i32,t_arr:!fir.array<5xf32>}>>) -> (!fir.ref<!fir.type<_QMtestTmy_type{t_i:i32,t_arr:!fir.array<5xf32>}>>, !fir.ref<!fir.type<_QMtestTmy_type{t_i:i32,t_arr:!fir.array<5xf32>}>>)



More information about the flang-commits mailing list