From 592ab2ddb5025c5cd1f9696755366c25027cf889 Mon Sep 17 00:00:00 2001 From: Alexey Bader Date: Sat, 4 Apr 2020 12:35:38 +0300 Subject: [PATCH 1/2] Enable cfg-printer LLVM lit tests only if LLVM linked statically Signed-off-by: Alexey Bader --- llvm/test/Other/cfg-printer-branch-weights.ll | 3 +++ llvm/test/Other/cfg_deopt_unreach.ll | 3 +++ 2 files changed, 6 insertions(+) diff --git a/llvm/test/Other/cfg-printer-branch-weights.ll b/llvm/test/Other/cfg-printer-branch-weights.ll index 200bc7d1fdde3..d7ee57ded1f28 100644 --- a/llvm/test/Other/cfg-printer-branch-weights.ll +++ b/llvm/test/Other/cfg-printer-branch-weights.ll @@ -1,6 +1,9 @@ ;RUN: opt < %s -analyze -dot-cfg -cfg-dot-filename-prefix=%t 2>/dev/null ;RUN: FileCheck %s -input-file=%t.f.dot +;TODO: Investigate why this test doesn't work with dinamically linked libraries +;REQUIRES: static-libs + define void @f(i32) { entry: %check = icmp sgt i32 %0, 0 diff --git a/llvm/test/Other/cfg_deopt_unreach.ll b/llvm/test/Other/cfg_deopt_unreach.ll index 72f23b58bc0d1..d5f290d9adfad 100644 --- a/llvm/test/Other/cfg_deopt_unreach.ll +++ b/llvm/test/Other/cfg_deopt_unreach.ll @@ -9,6 +9,9 @@ ; RUN: opt < %s -analyze -dot-cfg -cfg-hide-unreachable-paths -cfg-hide-deoptimize-paths -cfg-dot-filename-prefix=%t/both-flags 2>/dev/null ; RUN: FileCheck %s -input-file=%t/both-flags.callee.dot -check-prefix=BOTH-FLAGS +; TODO: Investigate why this test doesn't work with dinamically linked libraries +; REQUIRES: static-libs + declare i8 @llvm.experimental.deoptimize.i8(...) define i8 @callee(i1* %c) alwaysinline { From c0001d4cbd1b6f8b6cf1cb9ffb79bc6c2d9a158b Mon Sep 17 00:00:00 2001 From: Alexey Bader Date: Mon, 6 Apr 2020 13:25:08 +0300 Subject: [PATCH 2/2] Fix a typo. Signed-off-by: Alexey Bader --- llvm/test/Other/cfg-printer-branch-weights.ll | 2 +- llvm/test/Other/cfg_deopt_unreach.ll | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/test/Other/cfg-printer-branch-weights.ll b/llvm/test/Other/cfg-printer-branch-weights.ll index d7ee57ded1f28..ecfe6988c875a 100644 --- a/llvm/test/Other/cfg-printer-branch-weights.ll +++ b/llvm/test/Other/cfg-printer-branch-weights.ll @@ -1,7 +1,7 @@ ;RUN: opt < %s -analyze -dot-cfg -cfg-dot-filename-prefix=%t 2>/dev/null ;RUN: FileCheck %s -input-file=%t.f.dot -;TODO: Investigate why this test doesn't work with dinamically linked libraries +;TODO: Investigate why this test doesn't work with dynamically linked libraries ;REQUIRES: static-libs define void @f(i32) { diff --git a/llvm/test/Other/cfg_deopt_unreach.ll b/llvm/test/Other/cfg_deopt_unreach.ll index d5f290d9adfad..2b4bcd23c4004 100644 --- a/llvm/test/Other/cfg_deopt_unreach.ll +++ b/llvm/test/Other/cfg_deopt_unreach.ll @@ -9,7 +9,7 @@ ; RUN: opt < %s -analyze -dot-cfg -cfg-hide-unreachable-paths -cfg-hide-deoptimize-paths -cfg-dot-filename-prefix=%t/both-flags 2>/dev/null ; RUN: FileCheck %s -input-file=%t/both-flags.callee.dot -check-prefix=BOTH-FLAGS -; TODO: Investigate why this test doesn't work with dinamically linked libraries +; TODO: Investigate why this test doesn't work with dynamically linked libraries ; REQUIRES: static-libs declare i8 @llvm.experimental.deoptimize.i8(...)