diff options
author | Tim Shen <timshen91@gmail.com> | 2016-05-25 17:01:09 +0000 |
---|---|---|
committer | Tim Shen <timshen91@gmail.com> | 2016-05-25 17:01:09 +0000 |
commit | fa57367ae5bdf7482414f643af204f565bfb3c06 (patch) | |
tree | 2a0397a3dd7269a623382b089d91043717083b77 /llvm/test/CodeGen/PowerPC/tailcall-string-rvo.ll | |
parent | 95433df129c456799a551f970a2b41011034d1f0 (diff) | |
download | bcm5719-llvm-fa57367ae5bdf7482414f643af204f565bfb3c06.tar.gz bcm5719-llvm-fa57367ae5bdf7482414f643af204f565bfb3c06.zip |
Move and add comments to the top for tailcall-string-rvo.ll
Differential Revision: http://reviews.llvm.org/D20311
llvm-svn: 270722
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/tailcall-string-rvo.ll')
-rw-r--r-- | llvm/test/CodeGen/PowerPC/tailcall-string-rvo.ll | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/PowerPC/tailcall-string-rvo.ll b/llvm/test/CodeGen/PowerPC/tailcall-string-rvo.ll index b6b5fb9dbf7..3f850e6e94b 100644 --- a/llvm/test/CodeGen/PowerPC/tailcall-string-rvo.ll +++ b/llvm/test/CodeGen/PowerPC/tailcall-string-rvo.ll @@ -1,5 +1,13 @@ ; RUN: llc -O2 < %s | FileCheck %s +; The call to function TestBar should be a tail call, when in C++ the string +; `ret` is RVO returned. +; string TestFoo() { +; string ret = undef; +; TestBar(&ret); // tail call optimized +; return ret; +; } + target triple = "powerpc64le-linux-gnu" %class.basic_string.11.42.73 = type { %"class.__gnu_cxx::__versa_string.10.41.72" } @@ -16,11 +24,6 @@ bb: ret void } -; string TestFoo() { -; string ret = undef; -; TestBar(&ret); // tail call optimized -; return ret; -; } define void @TestFoo(%class.basic_string.11.42.73* noalias sret %arg) { ; CHECK-LABEL: TestFoo: ; CHECK: #TC_RETURNd8 TestBar 0 |