[llvm] r281752 - Fix test after renaming -name-anon-functions pass to -name-anon-globals
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 16 10:18:16 PDT 2016
Author: mehdi_amini
Date: Fri Sep 16 12:18:16 2016
New Revision: 281752
URL: http://llvm.org/viewvc/llvm-project?rev=281752&view=rev
Log:
Fix test after renaming -name-anon-functions pass to -name-anon-globals
Added:
llvm/trunk/test/Transforms/NameAnonGlobals/
llvm/trunk/test/Transforms/NameAnonGlobals/rename.ll
- copied, changed from r281745, llvm/trunk/test/Transforms/NameAnonFunctions/rename.ll
Removed:
llvm/trunk/test/Transforms/NameAnonFunctions/rename.ll
Modified:
llvm/trunk/lib/Passes/PassRegistry.def
llvm/trunk/test/Bitcode/thinlto-function-summary.ll
Modified: llvm/trunk/lib/Passes/PassRegistry.def
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Passes/PassRegistry.def?rev=281752&r1=281751&r2=281752&view=diff
==============================================================================
--- llvm/trunk/lib/Passes/PassRegistry.def (original)
+++ llvm/trunk/lib/Passes/PassRegistry.def Fri Sep 16 12:18:16 2016
@@ -54,7 +54,7 @@ MODULE_PASS("internalize", InternalizePa
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())
Modified: llvm/trunk/test/Bitcode/thinlto-function-summary.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/thinlto-function-summary.ll?rev=281752&r1=281751&r2=281752&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/thinlto-function-summary.ll (original)
+++ llvm/trunk/test/Bitcode/thinlto-function-summary.ll Fri Sep 16 12:18:16 2016
@@ -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.
Removed: llvm/trunk/test/Transforms/NameAnonFunctions/rename.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/NameAnonFunctions/rename.ll?rev=281751&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/NameAnonFunctions/rename.ll (original)
+++ llvm/trunk/test/Transforms/NameAnonFunctions/rename.ll (removed)
@@ -1,33 +0,0 @@
-; RUN: opt -S -name-anon-functions < %s | FileCheck %s
-
-
-; foo contribute to the unique hash for the module
-define void @foo() {
- ret void
-}
-
-; bar is internal, and does not contribute to the unique hash for the module
-define internal void @bar() {
- ret void
-}
-
-; CHECK: @anon.acbd18db4cc2f85cedef654fccc4a4d8.3 = global i8 0
-; CHECK: @anon.acbd18db4cc2f85cedef654fccc4a4d8.4 = alias i8, i8* @anon.acbd18db4cc2f85cedef654fccc4a4d8.3
-; CHECK: define void @anon.acbd18db4cc2f85cedef654fccc4a4d8.0()
-; CHECK: define void @anon.acbd18db4cc2f85cedef654fccc4a4d8.1()
-; CHECK: define void @anon.acbd18db4cc2f85cedef654fccc4a4d8.2()
-
-define void @0() {
- ret void
-}
-define void @1() {
- ret void
-}
-define void @2() {
- ret void
-}
-
-
- at 3 = global i8 0
-
- at 4 = alias i8, i8 *@3
Copied: llvm/trunk/test/Transforms/NameAnonGlobals/rename.ll (from r281745, llvm/trunk/test/Transforms/NameAnonFunctions/rename.ll)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/NameAnonGlobals/rename.ll?p2=llvm/trunk/test/Transforms/NameAnonGlobals/rename.ll&p1=llvm/trunk/test/Transforms/NameAnonFunctions/rename.ll&r1=281745&r2=281752&rev=281752&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/NameAnonFunctions/rename.ll (original)
+++ llvm/trunk/test/Transforms/NameAnonGlobals/rename.ll Fri Sep 16 12:18:16 2016
@@ -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
More information about the llvm-commits
mailing list