mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 18:36:06 +00:00
SCCP: Add failing testcase with llvm.ssa.copy
This commit is contained in:
parent
ad6b5762b6
commit
2c5ffa179c
@ -0,0 +1,21 @@
|
||||
; REQUIRES: asserts
|
||||
; XFAIL: *
|
||||
; RUN: opt -S -passes=ipsccp < %s
|
||||
|
||||
; https://github.com/llvm/llvm-project/issues/59661
|
||||
|
||||
define i32 @bar() {
|
||||
entry:
|
||||
%call = call i32 @foo()
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define internal i32 @foo() {
|
||||
entry:
|
||||
%arst = call ptr @llvm.ssa.copy.p0(ptr @foo)
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
declare ptr @llvm.ssa.copy.p0(ptr) #0
|
||||
|
||||
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
|
Loading…
x
Reference in New Issue
Block a user