Xamarin Public Jenkins (auto-signing) e19d552987 Imported Upstream version 5.18.0.161
Former-commit-id: 4db48158d3a35497b8f118ab21b5f08ac3d86d98
2018-10-19 08:34:24 +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
}