[clang] 58e4589 - [OpenMP, test] Fix use of undef DECL FileCheck var
Thomas Preud'homme via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 1 16:36:55 PDT 2021
Author: Thomas Preud'homme
Date: 2021-04-02T00:36:56+01:00
New Revision: 58e458935ba6debed11edd9baa98862db0a12651
URL: https://github.com/llvm/llvm-project/commit/58e458935ba6debed11edd9baa98862db0a12651
DIFF: https://github.com/llvm/llvm-project/commit/58e458935ba6debed11edd9baa98862db0a12651.diff
LOG: [OpenMP, test] Fix use of undef DECL FileCheck var
OpenMP test target_data_use_device_ptr_if_codegen contains a CHECK-NOT
directive using an undefined DECL FileCheck variable. It seems copied
from target_data_use_device_ptr_codegen where there's a CHECK for a load
that defined the variable. Since there is no corresponding load in this
testcase, the simplest is to simply forbid any store and get rid of the
variable altogether.
Reviewed By: ABataev
Differential Revision: https://reviews.llvm.org/D99771
Added:
Modified:
clang/test/OpenMP/target_data_use_device_ptr_if_codegen.cpp
Removed:
################################################################################
diff --git a/clang/test/OpenMP/target_data_use_device_ptr_if_codegen.cpp b/clang/test/OpenMP/target_data_use_device_ptr_if_codegen.cpp
index d423e212f05f..f25ca6babc11 100644
--- a/clang/test/OpenMP/target_data_use_device_ptr_if_codegen.cpp
+++ b/clang/test/OpenMP/target_data_use_device_ptr_if_codegen.cpp
@@ -29,7 +29,7 @@ void add_one(float *b, int dm)
// CK1: store float* [[B_ADDR:%.+]], float** [[CBP]]
// CK1: call void @__tgt_target_data_begin{{.+}}[[MTYPE00]]
// CK1: [[VAL:%.+]] = load float*, float** [[CBP]],
- // CK1-NOT: store float* [[VAL]], float** [[DECL]],
+ // CK1-NOT: store float* [[VAL]], float** {{%.+}},
// CK1: store float* [[VAL]], float** [[PVT:%.+]],
// CK1: [[TT:%.+]] = load float*, float** [[PVT]],
// CK1: call i32 @__tgt_target{{.+}}[[MTYPE01]]
More information about the cfe-commits
mailing list