From d581b9e61ff782e30cbd097b154213197033db0a Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Mon, 22 Oct 2012 00:48:51 +0000 Subject: Revert r166405, "Teach TailRecursionElimination to consider 'nocapture' when deciding whether" It broke selfhosting stage2 in several builders. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166406 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/TailCallElim/nocapture.ll | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/Transforms') diff --git a/test/Transforms/TailCallElim/nocapture.ll b/test/Transforms/TailCallElim/nocapture.ll index e848ca5403..87cb9dd427 100644 --- a/test/Transforms/TailCallElim/nocapture.ll +++ b/test/Transforms/TailCallElim/nocapture.ll @@ -1,7 +1,7 @@ ; RUN: opt %s -tailcallelim -S | FileCheck %s +; XFAIL: * declare void @use(i8* nocapture, i8* nocapture) -declare void @boring() define i8* @foo(i8* nocapture %A, i1 %cond) { ; CHECK: tailrecurse: @@ -19,9 +19,7 @@ cond_true: cond_false: ; CHECK: cond_false call void @use(i8* %A, i8* %B) -; CHECK: call void @use(i8* %A.tr, i8* %B) - call void @boring() -; CHECK: tail call void @boring() +; CHECK: tail call void @use(i8* %A.tr, i8* %B) ret i8* null ; CHECK: ret i8* null } -- cgit v1.2.3