blob: 2802fee3af1c06b6b90cbbc4f38812249b06cd0a [file] [log] [blame]
; RUN: opt -S -passes=inline < %s | FileCheck %s
declare ptr @llvm.experimental.deoptimize.p0(...)
; Make sure we do not add incompatible attribute (noalias) to the deoptimize call.
define ptr @callee_noalias(ptr %c) {
%v2 = call ptr (...) @llvm.experimental.deoptimize.p0(i32 42 ) [ "deopt"(i32 1) ]
ret ptr %v2
}
; CHECK-LABEL: caller_noalias
; CHECK: call void (...) @llvm.experimental.deoptimize.isVoid(i32 42) [ "deopt"(i32 2, i32 1) ]
define void @caller_noalias(ptr %c) {
entry:
%v = call noalias ptr @callee_noalias(ptr %c) [ "deopt"(i32 2) ]
ret void
}