aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Transforms/GVN/intersect-empty-attr.ll
blob: a2d719e4187581333518afd8b2b9948d6390f668 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
; RUN: opt -S -passes=gvn < %s | FileCheck %s

declare i32 @bar() #0

define i32 @foo() {
; CHECK-LABEL: define i32 @foo() {
; CHECK-NEXT:  [[ENTRY:.*:]]
; CHECK-NEXT:    [[TMP0:%.*]] = tail call i32 @bar() #[[ATTR1:[0-9]+]]
; CHECK-NEXT:    [[TMP1:%.*]] = tail call i32 @bar()
; CHECK-NEXT:    ret i32 1
;
entry:
  %0 = tail call i32 @bar() #1
  %1 = tail call i32 @bar()
  ret i32 1
}


attributes #0 = { memory(none) }
attributes #1 = { "llvm.assume"="ompx_no_call_asm" }