From 51b5b567ccca8fd3583f5399ccca015c85560036 Mon Sep 17 00:00:00 2001 From: Kirill Bobyrev Date: Thu, 27 Feb 2020 13:16:12 +0100 Subject: [PATCH] Require asserts for debuginline-cost-delta.ll test -debug-only=inline-cost does not exist in optimized builds without asserts and therefore the test fails for such configurations. Related revision: c965fd942f1d2de6179cd1a2f78c78fa4bd74626 --- llvm/test/Transforms/Inline/debuginline-cost-delta.ll | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/test/Transforms/Inline/debuginline-cost-delta.ll b/llvm/test/Transforms/Inline/debuginline-cost-delta.ll index a352c66833c6..4776dad21ff9 100644 --- a/llvm/test/Transforms/Inline/debuginline-cost-delta.ll +++ b/llvm/test/Transforms/Inline/debuginline-cost-delta.ll @@ -1,3 +1,6 @@ +; Require asserts for -debug-only +; REQUIRES: asserts + ; RUN: opt < %s -inline -debug-only=inline-cost -disable-output -print-instruction-deltas 2>&1 | FileCheck %s ; CHECK: Analyzing call of callee1... (caller:foo)