brintos

brintos / llvm-project-archived public Read only

0
0
Text · 373 B · 0f2171b Raw
16 lines · plain
1; RUN: llc -mtriple=x86_64-linux < %s | FileCheck %s2 3; Intrinsic call to @llvm.assume should not prevent tail call optimization.4; CHECK-LABEL: foo:5; CHECK:       jmp bar # TAILCALL6define ptr @foo() {7  %1 = tail call ptr @bar()8  %2 = icmp ne ptr %1, null9  tail call void @llvm.assume(i1 %2)10  ret ptr %111}12 13declare dso_local ptr @bar()14declare void @llvm.assume(i1)15 16