brintos

brintos / llvm-project-archived public Read only

0
0
Text · 338 B · 55b1ec9 Raw
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