[lld] r356593 - [TailCallElim] Update tests for LTO pipeline change
Robert Lougher via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 20 12:05:05 PDT 2019
Author: rlougher
Date: Wed Mar 20 12:05:05 2019
New Revision: 356593
URL: http://llvm.org/viewvc/llvm-project?rev=356593&view=rev
Log:
[TailCallElim] Update tests for LTO pipeline change
D58391 changed the LTO pipelines to add the tailcall elimination pass.
This caused three LLD tests to fail.
Differential Revision: https://reviews.llvm.org/D59604
Modified:
lld/trunk/test/ELF/lto/defsym.ll
lld/trunk/test/ELF/lto/opt-remarks.ll
lld/trunk/test/ELF/lto/wrap-2.ll
Modified: lld/trunk/test/ELF/lto/defsym.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/defsym.ll?rev=356593&r1=356592&r2=356593&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/defsym.ll (original)
+++ lld/trunk/test/ELF/lto/defsym.ll Wed Mar 20 12:05:05 2019
@@ -11,7 +11,7 @@
; RUN: opt -module-summary %S/Inputs/defsym-bar.ll -o %t1.o
; RUN: ld.lld %t.o %t1.o -shared -o %t2.so -defsym=bar2=bar3 -save-temps
; RUN: llvm-readelf --symbols %t2.so1.lto.o | FileCheck --check-prefix=OBJ %s
-; RUN: llvm-objdump -d %t2.so | FileCheck %s --check-prefix=THIN
+; RUN: llvm-objdump -d %t2.so | FileCheck %s
; OBJ: UND bar2
@@ -19,17 +19,11 @@
; Symbol bar3 should not be eliminated
; CHECK: foo:
-; CHECK-NEXT: pushq %rax
+; CHECK-NEXT: pushq %rax
; CHECK-NEXT: callq
; CHECK-NEXT: callq{{.*}}<bar3>
-; CHECK-NEXT: callq
-
-; THIN: foo
-; THIN-NEXT: pushq %rax
-; THIN-NEXT: callq
-; THIN-NEXT: callq{{.*}}<bar3>
-; THIN-NEXT: popq %rax
-; THIN-NEXT: jmp
+; CHECK-NEXT: popq %rax
+; CHECK-NEXT: jmp
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
Modified: lld/trunk/test/ELF/lto/opt-remarks.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/opt-remarks.ll?rev=356593&r1=356592&r2=356593&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/opt-remarks.ll (original)
+++ lld/trunk/test/ELF/lto/opt-remarks.ll Wed Mar 20 12:05:05 2019
@@ -14,7 +14,7 @@
; Check that @tinkywinky is inlined after optimizations.
; CHECK-LABEL: define i32 @main
-; CHECK-NEXT: %a.i = call i32 @patatino()
+; CHECK-NEXT: %a.i = {{.*}}call i32 @patatino()
; CHECK-NEXT: ret i32 %a.i
; CHECK-NEXT: }
Modified: lld/trunk/test/ELF/lto/wrap-2.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/wrap-2.ll?rev=356593&r1=356592&r2=356593&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/wrap-2.ll (original)
+++ lld/trunk/test/ELF/lto/wrap-2.ll Wed Mar 20 12:05:05 2019
@@ -10,7 +10,7 @@
; RUN: opt -module-summary %s -o %t.o
; RUN: opt -module-summary %S/Inputs/wrap-bar.ll -o %t1.o
; RUN: ld.lld %t.o %t1.o -shared -o %t.so -wrap=bar
-; RUN: llvm-objdump -d %t.so | FileCheck %s -check-prefix=THIN
+; RUN: llvm-objdump -d %t.so | FileCheck %s
; RUN: llvm-readobj -t %t.so | FileCheck -check-prefix=BIND %s
; Make sure that calls in foo() are not eliminated and that bar is
@@ -19,13 +19,8 @@
; CHECK: foo:
; CHECK-NEXT: pushq %rax
; CHECK-NEXT: callq{{.*}}<__wrap_bar>
-; CHECK-NEXT: callq{{.*}}<bar>
-
-; THIN: foo:
-; THIN-NEXT: pushq %rax
-; THIN-NEXT: callq{{.*}}<__wrap_bar>
-; THIN-NEXT: popq %rax
-; THIN-NEXT: jmp{{.*}}<bar>
+; CHECK-NEXT: popq %rax
+; CHECK-NEXT: jmp{{.*}}<bar>
; Check that bar and __wrap_bar retain their original binding.
; BIND: Name: bar
More information about the llvm-commits
mailing list