From 5cc819f73b06e7f16d109be5871e58aa0ec237ac Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Sun, 4 Feb 2018 18:40:24 +0000 Subject: [PATCH] [PartialInliner] Update test (NFC). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@324199 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/CodeExtractor/PartialInlineVarArg.ll | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/Transforms/CodeExtractor/PartialInlineVarArg.ll b/test/Transforms/CodeExtractor/PartialInlineVarArg.ll index fec37711fd9..bf6db27c959 100644 --- a/test/Transforms/CodeExtractor/PartialInlineVarArg.ll +++ b/test/Transforms/CodeExtractor/PartialInlineVarArg.ll @@ -36,7 +36,7 @@ bb: } ; CHECK-LABEL: @caller1 ; CHECK: codeRepl.i: -; CHECK-NEXT: call void (i32, i8**, i32, ...) @vararg.2_bb1(i32 %stat1.i, i8** %vargs.i, i32 %arg) +; CHECK-NEXT: call void (i32, i8**, i32, ...) @vararg.3_bb1(i32 %stat1.i, i8** %vargs.i, i32 %arg) define i32 @caller2(i32 %arg, float %arg2) { bb: @@ -46,7 +46,7 @@ bb: ; CHECK-LABEL: @caller2 ; CHECK: codeRepl.i: -; CHECK-NEXT: call void (i32, i8**, i32, ...) @vararg.2_bb1(i32 %stat1.i, i8** %vargs.i, i32 %arg, i32 10, float %arg2) +; CHECK-NEXT: call void (i32, i8**, i32, ...) @vararg.3_bb1(i32 %stat1.i, i8** %vargs.i, i32 %arg, i32 10, float %arg2) ; Test case to check that we do not extract a vararg function, if va_end is in ; a block that is not outlined. @@ -98,9 +98,10 @@ cleanup: ; preds = %entry define i32* @caller_with_signext(i32* %foo) { entry: - %call1 = tail call signext i32 (i32*, ...) @varargs2(i32* %foo, i32 signext 8) + %call1 = tail call signext i32 (i32*, ...) @vararg2(i32* %foo, i32 signext 8) unreachable } + ; CHECK-LABEL: @caller_with_signext ; CHECK: codeRepl.i: -; CHECK-NEXT: call void (i32*, ...) @callee.1_cond.end(i32* %foo, i32 signext 8) +; CHECK-NEXT: call void (i32*, ...) @vararg2.1_cond.end(i32* %foo, i32 signext 8)