Xamarin Public Jenkins (auto-signing) f32dbaf0b2 Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
2018-12-21 19:01:49 +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
}