Xamarin Public Jenkins (auto-signing) 64ac736ec5 Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
2019-04-12 14:10:50 +00:00

22 lines
413 B
LLVM

; RUN: opt -S < %s -functionattrs | FileCheck %s
declare void @llvm.sideeffect()
; Don't add readnone or similar attributes when an @llvm.sideeffect() intrinsic
; is present.
; CHECK: define void @test() {
define void @test() {
call void @llvm.sideeffect()
ret void
}
; CHECK: define void @loop() {
define void @loop() {
br label %loop
loop:
call void @llvm.sideeffect()
br label %loop
}