summaryrefslogtreecommitdiffstats
path: root/polly/test/Isl/CodeGen/OpenMP
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2017-03-07 15:17:23 +0000
committerTobias Grosser <tobias@grosser.es>2017-03-07 15:17:23 +0000
commit2dc1f547ae07b39cf150ae46f76747221b23efc5 (patch)
tree4aa50d59e759d654ddd11aa31d2ccfd2b615b82d /polly/test/Isl/CodeGen/OpenMP
parentc8de15bdda22da6103f69a30c5560cad17c058a3 (diff)
downloadbcm5719-llvm-2dc1f547ae07b39cf150ae46f76747221b23efc5.tar.gz
bcm5719-llvm-2dc1f547ae07b39cf150ae46f76747221b23efc5.zip
[tests] Make sure tests do not end in 'unreachable'
There is no point in optimizing unreachable code, hence our test cases should always return. This commit is part of a series that makes Polly more robust on the presence of unreachables. llvm-svn: 297147
Diffstat (limited to 'polly/test/Isl/CodeGen/OpenMP')
-rw-r--r--polly/test/Isl/CodeGen/OpenMP/reference-argument-from-non-affine-region.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/test/Isl/CodeGen/OpenMP/reference-argument-from-non-affine-region.ll b/polly/test/Isl/CodeGen/OpenMP/reference-argument-from-non-affine-region.ll
index 3dc0aa33cb4..ce30395330b 100644
--- a/polly/test/Isl/CodeGen/OpenMP/reference-argument-from-non-affine-region.ll
+++ b/polly/test/Isl/CodeGen/OpenMP/reference-argument-from-non-affine-region.ll
@@ -16,7 +16,7 @@ for.cond.463.preheader: ; preds = %entry
br label %for.cond.499.preheader
for.cond.533.preheader: ; preds = %for.inc.530
- unreachable
+ ret void
for.cond.499.preheader: ; preds = %for.inc.530, %for.cond.463.preheader
%indvars.iv140 = phi i64 [ 0, %for.cond.463.preheader ], [ %indvars.iv.next141, %for.inc.530 ]
OpenPOWER on IntegriCloud