diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2017-12-04 21:30:42 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2017-12-04 21:30:42 +0000 |
commit | c2e88a8a6b03b7cdbeef807b60f030ba10abcfa8 (patch) | |
tree | 4657c5ccbbffd8d145243e8ce72597a70898bb22 /clang/test/OpenMP/distribute_simd_reduction_codegen.cpp | |
parent | 68ba772cc0fcc2997f0e7827dd01f42f85161b7d (diff) | |
download | bcm5719-llvm-c2e88a8a6b03b7cdbeef807b60f030ba10abcfa8.tar.gz bcm5719-llvm-c2e88a8a6b03b7cdbeef807b60f030ba10abcfa8.zip |
[OPENMP] Fix PR35486: crash when collapsing loops with dependent iteration spaces.
Though it is incorrect from point of view of OpenMP standard to have
dependent iteration space in OpenMP loops, compiler should not crash.
Patch fixes this problem.
llvm-svn: 319700
Diffstat (limited to 'clang/test/OpenMP/distribute_simd_reduction_codegen.cpp')
-rw-r--r-- | clang/test/OpenMP/distribute_simd_reduction_codegen.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/OpenMP/distribute_simd_reduction_codegen.cpp b/clang/test/OpenMP/distribute_simd_reduction_codegen.cpp index c061ba926b8..8485d8d27d5 100644 --- a/clang/test/OpenMP/distribute_simd_reduction_codegen.cpp +++ b/clang/test/OpenMP/distribute_simd_reduction_codegen.cpp @@ -57,6 +57,7 @@ int main() { // LAMBDA: alloca i{{.+}}, // LAMBDA: alloca i{{.+}}, // LAMBDA: alloca i{{.+}}, + // LAMBDA: alloca i{{.+}}, // LAMBDA: [[SIVAR_PRIV:%.+]] = alloca i{{.+}}, // LAMBDA: store{{.+}} [[SIVAR_ARG]], {{.+}} [[SIVAR_ADDR]], // LAMBDA: [[SIVAR_REF:%.+]] = load{{.+}}, {{.+}} [[SIVAR_ADDR]] @@ -132,6 +133,7 @@ int main() { // CHECK: alloca i{{.+}}, // CHECK: alloca i{{.+}}, // CHECK: alloca i{{.+}}, +// CHECK: alloca i{{.+}}, // CHECK: [[SIVAR_PRIV:%.+]] = alloca i{{.+}}, // CHECK: store{{.+}} [[SIVAR_ARG]], {{.+}} [[SIVAR_ADDR]], // CHECK: [[SIVAR_REF:%.+]] = load{{.+}}, {{.+}} [[SIVAR_ADDR]] @@ -176,6 +178,7 @@ int main() { // CHECK: alloca i{{.+}}, // CHECK: alloca i{{.+}}, // CHECK: alloca i{{.+}}, +// CHECK: alloca i{{.+}}, // CHECK: [[TVAR_PRIV:%.+]] = alloca i{{.+}}, // CHECK: store{{.+}} [[TVAR_ARG]], {{.+}} [[TVAR_ADDR]], // CHECK: [[TVAR_REF:%.+]] = load{{.+}}, {{.+}} [[TVAR_ADDR]] |