xref: /llvm-project/llvm/test/Transforms/SCCP/issue59661-missing-predicate-info-for-ssa-copy.ll (revision 2c5ffa179c9e257ad7c87d0b8f18b9d63ce1a4fe)
1; REQUIRES: asserts
2; XFAIL: *
3; RUN: opt -S -passes=ipsccp < %s
4
5; https://github.com/llvm/llvm-project/issues/59661
6
7define i32 @bar() {
8entry:
9  %call = call i32 @foo()
10  ret i32 0
11}
12
13define internal i32 @foo() {
14entry:
15  %arst = call ptr @llvm.ssa.copy.p0(ptr @foo)
16  ret i32 0
17}
18
19declare ptr @llvm.ssa.copy.p0(ptr) #0
20
21attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
22