From 34882aee5f8a4e5693bb6cfc3f6a0527dbbb31da Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 27 Aug 2021 19:13:06 +0200 Subject: [PATCH] add back the tests removed by the merge --- debian/qualify-clang.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/debian/qualify-clang.sh b/debian/qualify-clang.sh index 1d2b8afd..6404b890 100755 --- a/debian/qualify-clang.sh +++ b/debian/qualify-clang.sh @@ -1205,10 +1205,18 @@ int main() } " > foo.c clang-$VERSION -O3 -mllvm -polly -mllvm -polly-parallel -lgomp foo.c -# Comment because of https://bugs.llvm.org/show_bug.cgi?id=43164 -#clang-$VERSION -O3 -mllvm -polly -mllvm -lgomp -polly-parallel foo.c clang-$VERSION -O3 -mllvm -polly -mllvm -polly-vectorizer=stripmine foo.c clang-$VERSION -S -fsave-optimization-record -emit-llvm foo.c -o matmul.s +# broken https://bugs.llvm.org/show_bug.cgi?id=51642 +test -s matmul.opt.yaml||true + +clang-$VERSION -S -O2 -fsave-optimization-record -emit-llvm foo.c -o matmul.s +if ! test -s matmul.opt.yaml; then + echo "-fsave-optimization-record generated an empty file" + exit 1 +fi + + opt-$VERSION -S -polly-canonicalize matmul.s > matmul.preopt.ll > /dev/null opt-$VERSION -basic-aa -polly-ast -analyze matmul.preopt.ll -polly-process-unprofitable > /dev/null if test ! -f /usr/lib/llvm-$VERSION/share/opt-viewer/opt-viewer.py; then