bolt/deps/llvm-18.1.8/llvm/test/Transforms/SCCP/issue59661-missing-predicate-info-for-ssa-copy.ll
2025-02-14 19:21:04 +01:00

21 lines
415 B
LLVM

; 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) }