summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/CodeExtractor/inline_eh.ll
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2018-10-24 18:53:47 +0000
committerTeresa Johnson <tejohnson@google.com>2018-10-24 18:53:47 +0000
commitc8dba682bba9c80654d7a10331f718da9b7b0475 (patch)
tree319803db7b4c42403065259031055708cb8362cf /llvm/test/Transforms/CodeExtractor/inline_eh.ll
parentb40e0520e1b0c401c38aee194c0f7ef6f7849e98 (diff)
downloadbcm5719-llvm-c8dba682bba9c80654d7a10331f718da9b7b0475.tar.gz
bcm5719-llvm-c8dba682bba9c80654d7a10331f718da9b7b0475.zip
[hot-cold-split] Name split functions with ".cold" suffix
Summary: The current default of appending "_"+entry block label to the new extracted cold function breaks demangling. Change the deliminator from "_" to "." to enable demangling. Because the header block label will be empty for release compile code, use "extracted" after the "." when the label is empty. Additionally, add a mechanism for the client to pass in an alternate suffix applied after the ".", and have the hot cold split pass use "cold."+Count, where the Count is currently 1 but can be used to uniquely number multiple cold functions split out from the same function with D53588. Reviewers: sebpop, hiraditya Subscribers: llvm-commits, erik.pilkington Differential Revision: https://reviews.llvm.org/D53534 llvm-svn: 345178
Diffstat (limited to 'llvm/test/Transforms/CodeExtractor/inline_eh.ll')
-rw-r--r--llvm/test/Transforms/CodeExtractor/inline_eh.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/CodeExtractor/inline_eh.ll b/llvm/test/Transforms/CodeExtractor/inline_eh.ll
index 4e0aa7a0d72..a69e0c30bb9 100644
--- a/llvm/test/Transforms/CodeExtractor/inline_eh.ll
+++ b/llvm/test/Transforms/CodeExtractor/inline_eh.ll
@@ -42,11 +42,11 @@ entry:
; CHECK: entry:
; CHECK-NEXT: br i1
; CHECK: codeRepl.i:
-; CHECK-NEXT: call void @callee.1_{{.*}}()
+; CHECK-NEXT: call void @callee.1.{{.*}}()
call void @callee(i1 %cond)
ret void
}
-; CHECK-LABEL: define {{.*}} @callee.1_{{.*}}() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
+; CHECK-LABEL: define {{.*}} @callee.1.{{.*}}() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
; CHECK: invoke void @bar()
; CHECK: landingpad
OpenPOWER on IntegriCloud