diff --git a/flang/lib/Lower/ConvertVariable.cpp b/flang/lib/Lower/ConvertVariable.cpp index f76d44f5479d3..4155a1282d8e0 100644 --- a/flang/lib/Lower/ConvertVariable.cpp +++ b/flang/lib/Lower/ConvertVariable.cpp @@ -46,10 +46,10 @@ #include "llvm/Support/Debug.h" #include -static llvm::cl::opt allowAssumedRank( - "allow-assumed-rank", - llvm::cl::desc("Enable assumed rank lowering - experimental"), - llvm::cl::init(false)); +static llvm::cl::opt + allowAssumedRank("allow-assumed-rank", + llvm::cl::desc("Enable assumed rank lowering"), + llvm::cl::init(true)); #define DEBUG_TYPE "flang-lower-variable" diff --git a/flang/test/Lower/HLFIR/assumed-rank-calls.f90 b/flang/test/Lower/HLFIR/assumed-rank-calls.f90 index afb2bbac99891..63b8d9fd81f33 100644 --- a/flang/test/Lower/HLFIR/assumed-rank-calls.f90 +++ b/flang/test/Lower/HLFIR/assumed-rank-calls.f90 @@ -1,7 +1,7 @@ ! Test passing of assumed-ranks that require creating a ! a new descriptor for the dummy argument (different lower bounds, ! attribute, or dynamic type) -! RUN: bbc -emit-hlfir -allow-assumed-rank -o - %s | FileCheck %s +! RUN: bbc -emit-hlfir -o - %s | FileCheck %s subroutine test_alloc_to_nonalloc(x) real, allocatable :: x(..) diff --git a/flang/test/Lower/HLFIR/assumed-rank-entry.f90 b/flang/test/Lower/HLFIR/assumed-rank-entry.f90 index 9928f5459f71f..9ac56c4282f87 100644 --- a/flang/test/Lower/HLFIR/assumed-rank-entry.f90 +++ b/flang/test/Lower/HLFIR/assumed-rank-entry.f90 @@ -1,6 +1,6 @@ ! Test assumed-rank dummy argument that is not present in ! all ENTRY statements. -! RUN: bbc -emit-hlfir -allow-assumed-rank -o - %s | FileCheck %s +! RUN: bbc -emit-hlfir -o - %s | FileCheck %s subroutine test_main_entry(x) real :: x(..) diff --git a/flang/test/Lower/HLFIR/assumed-rank-inquiries-2.f90 b/flang/test/Lower/HLFIR/assumed-rank-inquiries-2.f90 index 6c8f5ba48d1bf..696b228bacee0 100644 --- a/flang/test/Lower/HLFIR/assumed-rank-inquiries-2.f90 +++ b/flang/test/Lower/HLFIR/assumed-rank-inquiries-2.f90 @@ -1,6 +1,6 @@ ! Test lowering of SIZE/SIZEOF inquiry intrinsics with assumed-ranks ! arguments. -! RUN: bbc -emit-hlfir -o - %s -allow-assumed-rank | FileCheck %s +! RUN: bbc -emit-hlfir -o - %s | FileCheck %s subroutine test_size_1(x) diff --git a/flang/test/Lower/HLFIR/assumed-rank-inquiries-3.f90 b/flang/test/Lower/HLFIR/assumed-rank-inquiries-3.f90 index fb44efcad3ce7..af89cb833b337 100644 --- a/flang/test/Lower/HLFIR/assumed-rank-inquiries-3.f90 +++ b/flang/test/Lower/HLFIR/assumed-rank-inquiries-3.f90 @@ -1,5 +1,5 @@ ! Test shape lowering for assumed-rank -! RUN: bbc -emit-hlfir -o - %s -allow-assumed-rank | FileCheck %s +! RUN: bbc -emit-hlfir -o - %s | FileCheck %s subroutine test_shape(x) real :: x(..) diff --git a/flang/test/Lower/HLFIR/assumed-rank-inquiries.f90 b/flang/test/Lower/HLFIR/assumed-rank-inquiries.f90 index a1d150a21d149..a94ae7da36593 100644 --- a/flang/test/Lower/HLFIR/assumed-rank-inquiries.f90 +++ b/flang/test/Lower/HLFIR/assumed-rank-inquiries.f90 @@ -1,5 +1,5 @@ ! Test lowering of inquiry intrinsics with assumed-ranks arguments. -! RUN: bbc -emit-hlfir -o - %s -allow-assumed-rank | FileCheck %s +! RUN: bbc -emit-hlfir -o - %s | FileCheck %s subroutine test_allocated(x) real, allocatable :: x(..) diff --git a/flang/test/Lower/HLFIR/assumed-rank-internal-proc.f90 b/flang/test/Lower/HLFIR/assumed-rank-internal-proc.f90 index f8d5e84696c5f..690ceb64a03cf 100644 --- a/flang/test/Lower/HLFIR/assumed-rank-internal-proc.f90 +++ b/flang/test/Lower/HLFIR/assumed-rank-internal-proc.f90 @@ -1,5 +1,5 @@ ! Test assumed-rank capture inside internal procedures. -! RUN: bbc -emit-hlfir -o - %s -allow-assumed-rank | FileCheck %s +! RUN: bbc -emit-hlfir -o - %s | FileCheck %s subroutine test_assumed_rank(x) real :: x(..) diff --git a/flang/test/Lower/HLFIR/convert-variable-assumed-rank.f90 b/flang/test/Lower/HLFIR/convert-variable-assumed-rank.f90 index 3b60b0d04e9fa..d2931eabb75c2 100644 --- a/flang/test/Lower/HLFIR/convert-variable-assumed-rank.f90 +++ b/flang/test/Lower/HLFIR/convert-variable-assumed-rank.f90 @@ -1,5 +1,5 @@ ! Test lowering of assumed-rank variables -! RUN: bbc -emit-hlfir %s -allow-assumed-rank -o - | FileCheck %s +! RUN: bbc -emit-hlfir %s -o - | FileCheck %s module assumed_rank_tests interface diff --git a/flang/test/Lower/HLFIR/select-rank.f90 b/flang/test/Lower/HLFIR/select-rank.f90 index d27a6d732ffc7..7135c248ea44d 100644 --- a/flang/test/Lower/HLFIR/select-rank.f90 +++ b/flang/test/Lower/HLFIR/select-rank.f90 @@ -1,5 +1,5 @@ ! Test lowering of select rank to HLFIR -! RUN: bbc -emit-hlfir -o - %s -allow-assumed-rank | FileCheck %s +! RUN: bbc -emit-hlfir -o - %s | FileCheck %s module iface_helpers interface