summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2015-11-06 23:55:38 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2015-11-06 23:55:38 +0000
commit5cfcce12eb0446db614ae3f213f9c02ed4aa87a3 (patch)
tree1f4b89a02b6964f005f6fbc5e724620c72c3db3a /llvm/test/Bitcode
parent6e680b2be7e2af65fa054a61133f4930844975a4 (diff)
downloadbcm5719-llvm-5cfcce12eb0446db614ae3f213f9c02ed4aa87a3.tar.gz
bcm5719-llvm-5cfcce12eb0446db614ae3f213f9c02ed4aa87a3.zip
Add 'notail' marker for call instructions.
This marker prevents optimization passes from adding 'tail' or 'musttail' markers to a call. Is is used to prevent tail call optimization from being performed on the call. rdar://problem/22667622 Differential Revision: http://reviews.llvm.org/D12923 llvm-svn: 252368
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r--llvm/test/Bitcode/compatibility.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/compatibility.ll b/llvm/test/Bitcode/compatibility.ll
index 73c24f0370a..49689a99237 100644
--- a/llvm/test/Bitcode/compatibility.ll
+++ b/llvm/test/Bitcode/compatibility.ll
@@ -1144,6 +1144,13 @@ define void @instructions.call_musttail(i8* inalloca %val) {
ret void
}
+define void @instructions.call_notail() {
+ notail call void @f1()
+ ; CHECK: notail call void @f1()
+
+ ret void
+}
+
define void @instructions.landingpad() personality i32 -2 {
invoke void @llvm.donothing() to label %proceed unwind label %catch1
invoke void @llvm.donothing() to label %proceed unwind label %catch2
OpenPOWER on IntegriCloud