blob: cb62ff27f4bed75186dd5b671ab0187674ea701e [file] [log] [blame]
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -memcpyopt -S -enable-memcpyopt-memoryssa=0 | FileCheck %s
; RUN: opt < %s -memcpyopt -S -enable-memcpyopt-memoryssa=1 -verify-memoryssa | FileCheck %s
%struct = type { i16 }
declare i16 @g(%struct*) readnone
define void @f() {
; CHECK-LABEL: @f(
; CHECK-NEXT: entry:
; CHECK-NEXT: [[CALL:%.*]] = call i16 @g(%struct* byval(%struct) align 1 undef)
; CHECK-NEXT: ret void
;
entry:
%call = call i16 @g(%struct* byval(%struct) align 1 undef)
ret void
}