[llvm] 62536fa - [test] Make ThinLTO/X86/crash_debuginfo.ll work with -enable-new-pm=1

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 27 12:37:25 PDT 2020


Author: Fangrui Song
Date: 2020-10-27T12:37:19-07:00
New Revision: 62536fae61686ddd2ce492ce7e732b1030892f2c

URL: https://github.com/llvm/llvm-project/commit/62536fae61686ddd2ce492ce7e732b1030892f2c
DIFF: https://github.com/llvm/llvm-project/commit/62536fae61686ddd2ce492ce7e732b1030892f2c.diff

LOG: [test] Make ThinLTO/X86/crash_debuginfo.ll work with -enable-new-pm=1

LegacyInlinerBase::doFinalization runs removeDeadFunctions() to remove bar but
the new PM inliner doesn't. Improve the test to use llvm-nm -U.

Added: 
    

Modified: 
    llvm/test/ThinLTO/X86/crash_debuginfo.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/ThinLTO/X86/crash_debuginfo.ll b/llvm/test/ThinLTO/X86/crash_debuginfo.ll
index d0d63f25ee06..0186f001c122 100644
--- a/llvm/test/ThinLTO/X86/crash_debuginfo.ll
+++ b/llvm/test/ThinLTO/X86/crash_debuginfo.ll
@@ -2,12 +2,10 @@
 ; RUN: opt -module-summary -o %t-src.bc %p/Inputs/crash_debuginfo.ll
 ; RUN: llvm-lto -thinlto -o %t-index %t-dst.bc %t-src.bc
 ; RUN: opt -function-import -inline -summary-file %t-index.thinlto.bc %t-dst.bc -o %t.out
-; RUN: llvm-nm %t.out | FileCheck %s
+; RUN: llvm-nm -U %t.out | FileCheck %s --implicit-check-not=_bar
 
 ; Verify that we import bar and inline it. It use to crash importing due to ODR type uniquing
-; CHECK-NOT: bar
-; CHECK: foo
-; CHECK-NOT: bar
+; CHECK: _foo
 
 ; ModuleID = 'test/ThinLTO/X86/crash_debuginfo.ll'
 source_filename = "test/ThinLTO/X86/crash_debuginfo.ll"


        


More information about the llvm-commits mailing list