llvm/llvm/test/Transforms/NewGVN/eliminate-callsite-inline.ll

; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
; RUN: opt -passes=inline,newgvn -S < %s | FileCheck %s


define void @f2() {
; CHECK-LABEL: define void @f2() {
; CHECK-NEXT:    ret void
;
  call void @f1()
  call void @f1()
  ret void
}

define internal void @f1() #1 {
; CHECK-LABEL: define internal void @f1(
; CHECK-SAME: ) #[[ATTR0:[0-9]+]] {
; CHECK-NEXT:  entry:
; CHECK-NEXT:    ret void
;
entry:
  ret void
}

attributes #1 = { noinline nounwind readnone willreturn }