You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.179
Former-commit-id: 67aa10e65b237e1c4537630979ee99ebe1374215
This commit is contained in:
parent
d6bde52373
commit
8625704ad8
23
external/llvm/test/Transforms/ArgumentPromotion/tail.ll
vendored
Normal file
23
external/llvm/test/Transforms/ArgumentPromotion/tail.ll
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
; RUN: opt %s -argpromotion -S -o - | FileCheck %s
|
||||
; RUN: opt %s -passes=argpromotion -S -o - | FileCheck %s
|
||||
; PR14710
|
||||
|
||||
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
||||
|
||||
%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
|
||||
}
|
Reference in New Issue
Block a user