• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mtriple=x86_64-linux < %s | FileCheck %s
2
3; Intrinsic call to @llvm.assume should not prevent tail call optimization.
4; CHECK-LABEL: foo:
5; CHECK:       jmp bar # TAILCALL
6define i8* @foo() {
7  %1 = tail call i8* @bar()
8  %2 = icmp ne i8* %1, null
9  tail call void @llvm.assume(i1 %2)
10  ret i8* %1
11}
12
13declare dso_local i8* @bar()
14declare void @llvm.assume(i1)
15
16