]> granicus.if.org Git - llvm/commitdiff
Fix test after renaming -name-anon-functions pass to -name-anon-globals
authorMehdi Amini <mehdi.amini@apple.com>
Fri, 16 Sep 2016 17:18:16 +0000 (17:18 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Fri, 16 Sep 2016 17:18:16 +0000 (17:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281752 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Passes/PassRegistry.def
test/Bitcode/thinlto-function-summary.ll
test/Transforms/NameAnonGlobals/rename.ll [moved from test/Transforms/NameAnonFunctions/rename.ll with 92% similarity]

index e229c34b93f91d943c2945c5ca9de446bdb4f88c..20acf3bc4a59268d1eb5a5d1ecb7aec8aa0bae0b 100644 (file)
@@ -54,7 +54,7 @@ MODULE_PASS("internalize", InternalizePass())
 MODULE_PASS("invalidate<all>", InvalidateAllAnalysesPass())
 MODULE_PASS("ipsccp", IPSCCPPass())
 MODULE_PASS("lowertypetests", LowerTypeTestsPass())
-MODULE_PASS("name-global-functions", NameAnonGlobalPass())
+MODULE_PASS("name-anon-globals", NameAnonGlobalPass())
 MODULE_PASS("no-op-module", NoOpModulePass())
 MODULE_PASS("partial-inliner", PartialInlinerPass())
 MODULE_PASS("pgo-icall-prom", PGOIndirectCallPromotion())
index 636b96cb6e96ca98ce27da47c4d1554f4539061d..e42c55c1c2eb6d679025d155a1ff01550bc4c72f 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt -name-anon-functions -module-summary < %s | llvm-bcanalyzer -dump | FileCheck %s -check-prefix=BC
-; RUN: opt -passes=name-anon-functions -module-summary < %s | llvm-bcanalyzer -dump | FileCheck %s -check-prefix=BC
+; RUN: opt -name-anon-globals -module-summary < %s | llvm-bcanalyzer -dump | FileCheck %s -check-prefix=BC
+; RUN: opt -passes=name-anon-globals -module-summary < %s | llvm-bcanalyzer -dump | FileCheck %s -check-prefix=BC
 ; Check for summary block/records.
 
 ; Check the value ids in the summary entries against the
@@ -22,7 +22,7 @@
 ; BC-NEXT: <FNENTRY {{.*}} op0=3 {{.*}}> record string = 'anon.
 
 
-; RUN: opt -name-anon-functions -module-summary < %s | llvm-dis | FileCheck %s
+; RUN: opt -name-anon-globals -module-summary < %s | llvm-dis | FileCheck %s
 ; Check that this round-trips correctly.
 
 ; ModuleID = '<stdin>'
@@ -46,7 +46,7 @@ entry:
 }
 
 ; FIXME: Anonymous function and alias not currently in summary until
-; follow on fixes to rename anonymous functions and emit alias summary
+; follow on fixes to rename anonymous globals and emit alias summary
 ; entries are committed.
 ; Check an anonymous function as well, since in that case only the alias
 ; ends up in the value symbol table and having a summary.
similarity index 92%
rename from test/Transforms/NameAnonFunctions/rename.ll
rename to test/Transforms/NameAnonGlobals/rename.ll
index de576cb95c5eec72ce55b363f8422c5dc905c7c0..996dc51800f4a2030d1ce73b3eca1b30e6c765a5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -name-anon-functions < %s | FileCheck %s
+; RUN: opt -S -name-anon-globals < %s | FileCheck %s
 
 
 ; foo contribute to the unique hash for the module