forked from OSchip/llvm-project
[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
This commit is contained in:
parent
d222a07d30
commit
58e458935b
|
@ -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]]
|
||||
|
|
Loading…
Reference in New Issue