15 lines · plain
1; RUN: opt -S -passes=tailcallelim < %s | FileCheck %s2 3define void @foo() {4; CHECK-LABEL: define void @foo()5; CHECK-NOT: tail call void @llvm.stackrestore.p06;7entry:8 %0 = call ptr @llvm.stacksave.p0()9 call void @llvm.stackrestore.p0(ptr %0)10 ret void11}12 13declare ptr @llvm.stacksave.p0()14declare void @llvm.stackrestore.p0(ptr)15