Require asserts for debuginline-cost-delta.ll test
authorKirill Bobyrev <kbobyrev@google.com>
Thu, 27 Feb 2020 12:16:12 +0000 (13:16 +0100)
committerKirill Bobyrev <kbobyrev@google.com>
Thu, 27 Feb 2020 12:20:21 +0000 (13:20 +0100)
-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

index a352c66..4776dad 100644 (file)
@@ -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)