[llvm] 51b5b56 - Require asserts for debuginline-cost-delta.ll test

Kirill Bobyrev via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 27 04:20:34 PST 2020


Author: Kirill Bobyrev
Date: 2020-02-27T13:20:21+01:00
New Revision: 51b5b567ccca8fd3583f5399ccca015c85560036

URL: https://github.com/llvm/llvm-project/commit/51b5b567ccca8fd3583f5399ccca015c85560036
DIFF: https://github.com/llvm/llvm-project/commit/51b5b567ccca8fd3583f5399ccca015c85560036.diff

LOG: 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

Added: 
    

Modified: 
    llvm/test/Transforms/Inline/debuginline-cost-delta.ll

Removed: 
    


################################################################################
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)


        


More information about the llvm-commits mailing list