2014-01-23 17:19:42 +00:00
|
|
|
; RUN: opt %s -argpromotion -S -o - | FileCheck %s
|
2014-01-23 20:17:12 +00:00
|
|
|
; PR14710
|
2014-01-23 17:19:42 +00:00
|
|
|
|
2014-08-28 22:42:00 +00:00
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
|
2014-01-23 17:19:42 +00:00
|
|
|
%pair = type { i32, i32 }
|
|
|
|
|
|
|
|
declare i8* @foo(%pair*)
|
|
|
|
|
|
|
|
define internal void @bar(%pair* byval %Data) {
|
|
|
|
; CHECK: define internal void @bar(i32 %Data.0, i32 %Data.1)
|
|
|
|
; CHECK: %Data = alloca %pair
|
|
|
|
; CHECK-NOT: tail
|
|
|
|
; CHECK: call i8* @foo(%pair* %Data)
|
|
|
|
tail call i8* @foo(%pair* %Data)
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @zed(%pair* byval %Data) {
|
|
|
|
call void @bar(%pair* byval %Data)
|
|
|
|
ret void
|
|
|
|
}
|