22 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 52; RUN: opt -S -passes=gvn < %s | FileCheck %s3 4declare i32 @bar() #05 6define i32 @foo() {7; CHECK-LABEL: define i32 @foo() {8; CHECK-NEXT: [[ENTRY:.*:]]9; CHECK-NEXT: [[TMP0:%.*]] = tail call i32 @bar() #[[ATTR1:[0-9]+]]10; CHECK-NEXT: [[TMP1:%.*]] = tail call i32 @bar()11; CHECK-NEXT: ret i32 112;13entry:14 %0 = tail call i32 @bar() #115 %1 = tail call i32 @bar()16 ret i32 117}18 19 20attributes #0 = { memory(none) }21attributes #1 = { "llvm.assume"="ompx_no_call_asm" }22