diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2015-11-06 23:55:38 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2015-11-06 23:55:38 +0000 |
commit | c35973bfb04731fa91591044d6d2408099dcccd3 (patch) | |
tree | 1f9fe847c176c2d23e1259622f2341dabe2f3234 /test/Bitcode/compatibility.ll | |
parent | 6bd362c2d9d3e3284708ba5e55d8f3ccf7493313 (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252368 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bitcode/compatibility.ll')
-rw-r--r-- | test/Bitcode/compatibility.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Bitcode/compatibility.ll b/test/Bitcode/compatibility.ll index 73c24f0370a..49689a99237 100644 --- a/test/Bitcode/compatibility.ll +++ b/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 |